/* Paleta de colores mejorada:
   - Fondo principal (suave, cálido): #fcefe9 (casi blanco, con un toque de rosa)
   - Acento primario (oro rosado/cobre): #b58c8c
   - Acento secundario (rosa empolvado más claro): #d9b4b4
   - Texto oscuro (elegante gris/marrón): #4a4a4a
   - Texto secundario/Footer (gris medio): #888888
*/

:root {
    --color-bg-primary: #fcefe9;
    --color-accent-primary: #b58c8c;
    --color-accent-secondary: #d9b4b4;
    --color-text-dark: #4a4a4a;
    --color-text-secondary: #888888;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Estilos Generales y Fondo */
body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden; /* Previene scroll no deseado por el gradiente */
    background: linear-gradient(-45deg, var(--color-bg-primary), #f7e0d6, #fcefe9, #f7e0d6);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4); /* Capa translúcida para suavizar el fondo */
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    text-align: center;
    padding: 50px 30px;
    background-color: rgba(255, 255, 255, 0.95); /* Fondo semitransparente para el contenido */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Sombra más pronunciada pero suave */
    backdrop-filter: blur(5px); /* Efecto de desenfoque detrás del contenido */
    animation: fadeIn 1s ease-out forwards; /* Animación de entrada para el contenedor */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px; /* Asegura un mínimo de altura */
}

/* Encabezado */
.header {
    margin-bottom: 40px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    animation: fadeIn 1.2s ease-out forwards;
}

.ring-icon {
    font-size: 2.2em;
    color: var(--color-accent-primary);
    margin-right: 15px;
    animation: pulse 2s infinite ease-in-out;
}

.header h1 {
    font-family: var(--font-heading);
    font-size: 3em;
    font-weight: 700;
    color: var(--color-accent-primary);
    margin: 0;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2em;
    font-weight: 400;
    margin-top: 10px;
    color: var(--color-text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeIn 1.4s ease-out forwards;
}

/* Contenido Principal */
.content {
    flex-grow: 1; /* Permite que el contenido ocupe el espacio disponible */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el contenido dentro de main */
}

.title {
    font-family: var(--font-heading);
    font-size: 3.5em;
    font-weight: 700;
    margin: 0 0 25px 0;
    line-height: 1.2;
    color: var(--color-text-dark);
    animation: slideInUp 1.5s ease-out forwards;
    animation-delay: 0.2s; /* Retraso para que aparezca después del encabezado */
    opacity: 0; /* Empieza invisible para la animación */
}

.message {
    font-size: 1.3em;
    line-height: 1.7;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-dark);
    animation: slideInUp 1.6s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

/* Información de Contacto (Botón) */
.contact-info p {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--color-text-secondary);
    animation: fadeIn 1.8s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4em;
    font-weight: 600;
    color: white;
    background-color: var(--color-accent-primary);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px; /* Borde más redondeado para un look moderno */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(181, 140, 140, 0.4); /* Sombra para el botón */
    animation: fadeIn 1.9s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.btn-contact:hover {
    background-color: #a07a7a; /* Tono ligeramente más oscuro al pasar el ratón */
    transform: translateY(-3px); /* Pequeño efecto de levantamiento */
    box-shadow: 0 12px 25px rgba(181, 140, 140, 0.5);
}

.btn-contact i {
    font-size: 1.2em;
}

/* Pie de página */
.footer {
    margin-top: 60px;
    font-size: 0.9em;
    color: var(--color-text-secondary);
    animation: fadeIn 2s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}

/* Media Query para Responsividad */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .header h1 {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .ring-icon {
        font-size: 1.8em;
        margin-right: 10px;
    }

    .title {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

    .message {
        font-size: 1.1em;
        margin-bottom: 40px;
    }
    
    .btn-contact {
        font-size: 1.2em;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    .container {
        padding: 30px 15px;
    }
    .header h1 {
        font-size: 1.8em;
    }
    .title {
        font-size: 2em;
    }
    .message {
        font-size: 0.95em;
    }
    .btn-contact {
        font-size: 1.1em;
        padding: 10px 20px;
    }
    .ring-icon {
        font-size: 1.5em;
    }
}