:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #d4af37;
    --text-color: #333333;
    --background-color: #f5f2ea;
    --spacing: 80px;
    --transition: all 0.3s ease;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 300;
    background-color: var(--background-color);
}

section {
    padding: var(--spacing) 0;
    position: relative;
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1400px;
    margin: var(--spacing) auto 0 auto;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing);
}

/* Header y Navegación */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(245, 242, 234, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-align: center;
}

.menu-toggle {
    position: absolute;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--accent-color);
}

.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-color);
    padding: 2rem;
    transition: var(--transition);
    z-index: 1001;
}

.menu-overlay.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.close-menu:hover {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    margin-top: 4rem;
    padding: 0;
}

.nav-links li {
    margin: 2rem 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--accent-color);
    padding-left: 1rem;
}

/* Contacto */
.contacto-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.form-section {
    width: 45%;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.vertical-line {
    width: 1px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.image-section {
    width: 45%;
    position: sticky;
    top: 100px;
}

.image-section img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    transition: var(--transition);
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.contacto-form input::placeholder,
.contacto-form select::placeholder,
.contacto-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.contacto-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L2 6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

.contacto-form textarea {
    height: 100px;
    resize: vertical;
    margin-top: 10px;
}

.contacto-form button {
    align-self: center;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.contacto-form button:hover {
    background-color: var(--accent-color);
}

/* Estilos específicos para el campo de fecha */
.contacto-form input[type="date"] {
    color: rgba(0, 0, 0, 0.7);
}

.contacto-form input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

.contacto-form button:hover {
    background-color: var(--accent-color);
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 0;
    text-align: center;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Media Queries para dispositivos móviles */
@media screen and (max-width: 768px) {
    .contacto-container {
        flex-direction: column;
        padding: 0 20px;
    }

    .form-section, 
    .image-section {
        width: 100%;
    }

    .vertical-line {
        display: none;
    }

    .image-section {
        position: relative;
        top: 0;
        margin: 40px 0;
        order: -1; /* Mueve la imagen arriba del formulario */
    }

    .image-section img {
        max-height: 300px;
        object-fit: cover;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .contacto-info {
        width: 100%;
        margin-top: 40px;
    }

    /* Ajustes para el header en móvil */
    .logo {
        font-size: 1.5rem;
    }

    /* Ajustes para el espaciado general */
    section {
        padding: 40px 0;
    }

    .form-group {
        gap: 15px;
    }

    /* Ajustar el tamaño de los inputs y la tipografía */
    .contacto-form input,
    .contacto-form select,
    .contacto-form textarea {
        font-size: 16px; /* Evita el zoom automático en iOS */
        padding: 10px 0;
    }

    .form-group h3 {
        font-size: 1.2rem;
    }

    .contacto-form button {
        width: 100%;
        padding: 12px 20px;
    }
}