/* --- Botón para Abrir el Chat --- */
.open-corvus-chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px; /* Tamaño del botón */
    height: 60px;
    background-color: #4285F4; /* Azul de Google */
    color: white;
    border: none;
    border-radius: 50%; /* Botón redondo */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 2em; /* Puedes poner un icono aquí o texto */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.2s ease;

    /* Icono de ejemplo (puedes usar un SVG o FontAwesome) */
    content: "💬"; 
    font-family: 'Material Icons', sans-serif; /* Si tienes Material Icons */
    font-size: 1.8em;
}

.open-corvus-chat-button:hover {
    background-color: #3367D6;
    transform: translateY(-2px);
}
.open-corvus-chat-button:active {
    transform: translateY(0);
}

/* --- Widget de Chat Flotante (Contenedor del Iframe) --- */
.corvus-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 500px; /* Ancho del chat */
    height: 500px; /* Alto del chat */
    background-color: #222; /* Fondo del widget */
    border: 1px solid #444;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInSlideUp 0.5s ease-out; /* Animación de entrada */
}

/* Animación para que aparezca suavemente desde abajo y derecha */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

/* Cabecera del Widget */
.corvus-chat-header {
    background-color: #333;
    color: #f1f1f1;
    padding: 10px 15px;
    border-bottom: 1px solid #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 1.1em;
}

.corvus-chat-title {
    flex-grow: 1;
    text-align: left; /* Título alineado a la izquierda */
}

/* Botón de cerrar dentro del widget */
.close-corvus-chat-button {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.8em;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.2s ease;
}

.close-corvus-chat-button:hover {
    color: #fff;
}

/* Iframe que carga Corvus */
.corvus-chat-widget iframe {
    flex-grow: 1; /* Ocupa el espacio restante */
    border: none;
    width: 100%;
    height: 100%;
    background-color: #282828; /* Color de fondo del iframe si tarda en cargar */
}

/* --- Media Queries para Ocultar en Móviles --- */
@media (max-width: 768px) { /* Puedes ajustar este breakpoint */
    .open-corvus-chat-button,
    .corvus-chat-widget {
        display: none !important; /* ¡Forzar ocultar en móvil! */
    }
}






















/* Estilos generales */
:root {
    --primary-color: #CE7940;    /* Naranja/Marrón (Principal) */
    --secondary-color: #243465; /* Azul Marino (Secundario) */
    --tertiary-color: #803B31;  /* Marrón Rojizo (Terciario/Acento) */

    --text-color: #333;
    --light-bg: #f4f4f4;
    --dark-bg: #222;
    --white-text: #fff;

    --font-family-header: 'Cinzel', serif;
    --font-family-body: 'Roboto', sans-serif;
}

/* Importar fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Cinzel:wght@400;700&display=swap');

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--white-text);
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden; /* Limpia floats */
    padding: 20px 0;
}

/* Encabezado */
header {
    background: var(--secondary-color);
    color: var(--white-text);
    padding: 1rem 0;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
    position: sticky; /* Make header sticky */
    top: 0; /* Stick to the top */
    z-index: 1000; /* Ensure it stays on top of other content */
    transition: background 0.3s ease, padding 0.3s ease; /* Smooth transition for scroll effect */
    position: relative; /* Needed for absolute positioning of language selector */
}

/* Style for scrolled header (optional) */
header.scrolled {
    background-color: rgba(36, 52, 101, 0.95); /* Slightly transparent dark background */
    padding: 0.7rem 0; /* Slightly smaller padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    font-family: var(--font-family-header);
    font-size: 2.5rem;
    color: var(--primary-color);
}

header p {
    font-size: 1.1rem;
    margin-top: 5px;
    margin-bottom: 15px;
}

header nav ul {
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-right: 20px;
}

header nav a {
    color: var(--white-text);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease; /* Transición suave para el color del texto */
}

header nav a:hover {
    color: var(--primary-color);
}

/* Active navigation link style */
header nav a.active {
    color: var(--primary-color); /* Highlight color for active link */
    border-bottom: 2px solid var(--primary-color); /* Underline for active link */
    padding-bottom: 3px;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 10px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    display: flex;
    gap: 10px; /* Space between flags */
    z-index: 1001; /* Above sticky header */
}

.language-selector img {
    width: 30px; /* Size of the flags */
    height: auto;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.language-selector img:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.language-selector img.active-lang {
    border: 2px solid var(--primary-color); /* Highlight active flag */
    transform: scale(1.05);
}

/* Secciones generales */
.section-padded {
    padding: 40px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-padded h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-family: var(--font-family-header);
    font-size: 2rem;
}

/* Sección Hero (Inicio) */
.hero {
    background: url('fondo.jpg') no-repeat center center/cover; /* Imagen de banner */
    color: var(--white-text);
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay oscuro para que el texto resalte */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: var(--font-family-header);
    color: var(--white-text);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Botones */
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-text);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease; /* Transición suave para el fondo del botón */
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--tertiary-color);
    color: var(--white-text);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white-text);
}

.btn-secondary:hover {
    background: var(--tertiary-color);
    color: var(--white-text);
}

/* Sección About Us (Texto izquierda, Imagen derecha) */
.about-flex-container {
    display: flex;
    flex-direction: row; /* Texto izquierda, imagen derecha por defecto */
    align-items: flex-start; /* Alinea los ítems al inicio del eje transversal */
    gap: 40px; /* Espacio entre el texto y la imagen */
    max-width: 1200px; /* Ancho máximo para el contenedor flex */
    margin: 0 auto; /* Centra el contenedor flex en la página */
    padding: 0 20px; /* Padding para el contenedor en los laterales */
}

.about-text-content {
    flex: 2; /* Ocupa 2 partes del espacio disponible */
    max-width: 700px; /* Asegura que el texto no se extienda demasiado */
}

.about-text-content .lead-paragraph {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: justify; /* Justificado para el párrafo principal */
}

.about-text-content p {
    margin-bottom: 1rem;
    text-align: justify; /* Párrafos justificados */
}

.about-image-container {
    flex: 1; /* Ocupa 1 parte del espacio disponible */
    display: flex;
    justify-content: center; /* Centra horizontalmente la imagen */
    align-items: flex-start; /* Alinea la imagen a la parte superior */
    padding-top: 20px; /* Pequeño padding superior para la imagen si el texto es largo */
}

.about-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sección Our History (Imagen izquierda, Texto derecha) */
.history-flex-container {
    display: flex;
    flex-direction: row; /* Imagen izquierda, Texto derecha (orden normal de lectura) */
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.history-text-content {
    flex: 2; /* Ocupa 2 partes del espacio disponible */
    max-width: 700px;
    text-align: justify; /* Justificado para el texto */
}

.history-text-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.history-image-container {
    flex: 1; /* Ocupa 1 parte del espacio disponible */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.history-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Las siguientes clases se usaron antes para texto centrado.
    Ahora que 'About Us' y 'Our History' tienen layouts de imagen/texto,
    estas reglas ya no son directamente aplicables a esas secciones
    a menos que haya otro bloque de HTML que use solo '.about-content'.
    Se mantienen por si el usuario tiene otros elementos con esa clase
    que sí quiera centrados. Si no es así, se podrían eliminar. */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content .lead-paragraph {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 25px;
    text-align: center;
}

.about-content p {
    margin-bottom: 1rem;
    text-align: center;
}

/* Para centrar el botón en la sección Nova Roma */
.button-container {
    text-align: center; /* Centra el botón */
    margin-top: 40px;   /* Añade espacio por encima del botón */
}

/* Sección Redes Sociales */
.social-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--secondary-color);
    color: var(--white-text);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Transiciones suaves */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px); /* Pequeño efecto de levantamiento */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
}

.social-icon i {
    font-size: 1.5rem;
}

.social-icon.facebook {
    background-color: #3b5998; /* Color de marca de Facebook */
}

.social-icon.facebook:hover {
    background-color: #2d4373;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); /* Color de marca de Instagram */
}

.social-icon.instagram:hover {
    opacity: 0.9;
}


/* Sección de Contacto */
.contact-details {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: box-shadow 0.3s ease; /* Transición suave para la sombra */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-details:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada al pasar el ratón */
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: inline-block;
    text-align: left;
}

.contact-details ul li {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-weight: bold;
}

.contact-details ul li i {
    margin-right: 8px;
    color: var(--primary-color);
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-decoration 0.3s ease; /* Transición suave para color y subrayado */
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Pie de página */
footer {
    background: var(--secondary-color);
    color: var(--white-text);
    text-align: center;
    padding: 1rem 0;
    margin-top: 40px;
    border-top: 5px solid var(--primary-color);
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease; /* Transición suave para el color del texto del enlace del footer */
}

footer a:hover {
    color: var(--white-text);
}

/* Media Queries para Responsividad */
@media (max-width: 992px) { /* Este breakpoint afecta a tablets y móviles para el diseño de la imagen y texto */
    .container {
        width: 95%;
        padding: 10px 0;
    }

    header h1 {
        font-size: 2rem;
    }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    /* Adjust active link for stacked navigation */
    header nav a.active {
        border-bottom: none; /* Remove underline for stacked links */
        color: var(--primary-color); /* Still highlight color */
    }

    /* Language selector on smaller screens */
    .language-selector {
        position: static; /* Stack on smaller screens */
        margin-top: 15px; /* Add some space below nav */
        justify-content: center; /* Center flags */
    }

    .hero {
        padding: 70px 0;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    /* Reglas específicas para la sección About Us en pantallas pequeñas */
    .about-flex-container {
        flex-direction: column; /* Apila los elementos (imagen encima del texto) */
        align-items: center; /* Centra los elementos apilados */
        gap: 30px;
    }

    .about-text-content {
        flex: none;
        width: 100%;
        max-width: none;
        text-align: left; /* Alinea el texto a la izquierda en móviles */
    }

    .about-text-content .lead-paragraph,
    .about-text-content p {
        text-align: left;
    }

    .about-image-container {
        flex: none;
        width: 100%;
        padding-top: 0;
    }

    /* Reglas específicas para la sección Our History en pantallas pequeñas */
    .history-flex-container {
        flex-direction: column; /* Apila los elementos (imagen encima del texto) */
        align-items: center; /* Centra los elementos apilados */
        gap: 30px;
    }

    .history-text-content {
        flex: none;
        width: 100%;
        max-width: none;
        text-align: left;
    }

    .history-text-content p {
        text-align: left;
    }

    .history-image-container {
        flex: none;
        width: 100%;
        padding-top: 0;
    }

    /* Para las secciones de solo texto (si aún tienes alguna con .about-content) en móviles */
    .about-content .lead-paragraph {
        font-size: 1.1rem;
        text-align: left; /* Párrafo principal a la izquierda en móviles */
    }
    .about-content p {
        text-align: left; /* Párrafos generales a la izquierda en móviles */
    }

    .social-links {
        flex-direction: column; /* Apila los iconos de redes sociales */
        align-items: center;
        gap: 15px;
    }

    .contact-details ul {
        text-align: center;
    }
    .contact-details ul li {
        text-align: center;
    }

    /* Margen del botón de Nova Roma en pantallas pequeñas */
    .button-container {
        margin-top: 30px;
    }
}

/* Media Query para pantallas muy pequeñas (ej. smartphones) si es necesario afinar más */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}
