/* ==========================================================================
   HOJA DE ESTILOS GLOBAL - EDUCATIVELAND (HTML5 LIMPIO)
   ========================================================================== */

/* Variables de Diseño y Colores */
:root {
    --primary-color: #2ea3f2; /* Azul Divi clásico de tu marca */
    --text-color: #333333;
    --bg-light: #f9f9f9;
    --font-main: 'Open Sans', sans-serif;
    --max-width: 1200px;
}

/* Reset Básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Anular el hueco reservado por Divi para su barra de navegación fija original,
   que ya no existe en este diseño (dejaba un espacio en blanco sobre el menú) */
#page-container {
    padding-top: 0 !important;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

/* Encabezado y Navegación */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.site-header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Secciones de Contenido */
.content-section {
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.content-section:nth-child(even) {
    background-color: var(--bg-light);
    max-width: 100%;
    padding-left: max(1rem, calc((100% - var(--max-width)) / 2 + 2rem));
    padding-right: max(1rem, calc((100% - var(--max-width)) / 2 + 2rem));
}

/* Estructura de Filas y Columnas (Responsive Grid) */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Elementos de Contenido */
h1, h2, h3 {
    color: #222222;
    margin-bottom: 0.5rem;
}

/* Pie de página: mismo azul de marca que los botones (sustituye el azul oscuro del personalizador Divi) */
footer#main-footer,
#main-footer {
    background-color: var(--primary-color) !important;
}

#et-footer-nav {
    background-color: rgba(0, 0, 0, 0.12) !important;
}

#footer-bottom {
    background-color: rgba(0, 0, 0, 0.18) !important;
}

.bottom-nav a,
#footer-info,
#footer-info a {
    color: #ffffff !important;
}

/* Utilidad "clearfix" (necesaria para contenedores con hijos flotantes, p.ej. el footer heredado de Divi).
   Se añade aquí de forma permanente para que nunca dependa del CSS incrustado de cada página. */
.clearfix { zoom: 1; }
.clearfix:after {
    content: " ";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
    font-size: 0;
}

/* Mismo tipo de "limpiador de flotantes" para otros contenedores heredados de Divi
   que puedan seguir usando disposición flotante (filas anidadas, sliders) */
.et_pb_row_inner:after,
.et_pb_slides:after,
.et-l--header:after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
    line-height: 0;
}

h1 { font-size: 2.5rem; text-align: center; margin-bottom: 2rem; }

/* Párrafos, listas y citas dentro del contenido (páginas legales, textos largos) */
.content-section p {
    margin-bottom: 1.2rem;
}

.content-section ol,
.content-section ul {
    margin: 0 0 1.5rem 1.5rem;
    padding-left: 1rem;
}

.content-section ol {
    list-style: decimal;
}

.content-section ul {
    list-style: disc;
}

.content-section li {
    margin-bottom: 0.6rem;
    padding-left: 0.3rem;
}

.content-section li::marker {
    color: var(--primary-color);
    font-weight: 700;
}

.content-section blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--bg-light);
    font-style: italic;
    color: #555;
}

.content-section blockquote p {
    margin-bottom: 0.6rem;
}

.content-section blockquote p:last-child {
    margin-bottom: 0;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.content-section table td,
.content-section table th {
    border: 1px solid #ddd;
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.content-section table th {
    background-color: var(--bg-light);
    font-weight: 700;
}
h2 { font-size: 1.8rem; }

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Botones de Acción */
.btn-action {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: transform 0.2s, background-color 0.2s;
    align-self: flex-start; /* Evita que el botón se estire a lo ancho */
}

.btn-action:hover {
    background-color: #1b89d4;
    transform: translateY(-2px);
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 768px) {
    .site-header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .content-section {
        padding: 2rem 1rem;
    }
    .content-section:nth-child(even) {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .row {
        gap: 1.5rem;
    }
}
/* ==========================================================================
   ESTILOS DE FORMULARIOS UNIFICADOS Y AMPLIOS
   ========================================================================== */

.formulario-contacto {
    background: #f9f9f9;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 2rem auto;
}

.formulario-contacto p {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #444;
}

/* Hacer los campos de texto y desplegables grandes y cómodos */
.formulario-contacto input[type="text"],
.formulario-contacto input[type="email"],
.formulario-contacto input[type="tel"],
.formulario-contacto select,
.formulario-contacto textarea {
    width: 100%;
    padding: 14px 16px; /* Campos notablemente más grandes y altos */
    font-size: 1rem;
    font-family: var(--font-main);
    color: #333;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background-color: #ffffff;
    margin-bottom: 1.8rem; /* Mayor separación entre secciones */
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    box-sizing: border-box;
}

/* Efecto visual elegante al hacer clic o escribir en un campo */
.formulario-contacto input:focus,
.formulario-contacto select:focus,
.formulario-contacto textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 163, 242, 0.15);
}

/* Estilo para centrar y realzar el botón de enviar reserva */
.formulario-contacto .btn-action {
    display: block;
    width: auto;
    margin: 1rem auto 0 auto;
    padding: 14px 40px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(46, 163, 242, 0.3);
}
/* ==========================================================================
   BOTONES DE CABECERA Y SECCIONES DE DIVI (ALTO CONTRASTE)
   ========================================================================== */

/* Transformar los enlaces sueltos de Divi en botones reales */
.et_pb_button, 
.et_pb_more_button, 
.et_pb_button_one, 
.et_pb_button_two {
    display: inline-block !important;
    padding: 12px 30px !important;
    margin: 10px 15px 10px 0 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

/* Estilo para el Primer Botón (Sólido Blanco - Máximo contraste sobre azul) */
.et_pb_button_one {
    background-color: #ffffff !important;
    color: #2ea3f2 !important; /* Azul corporativo para el texto */
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.et_pb_button_one:hover {
    background-color: #2ea3f2 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Estilo para el Segundo Botón (Estilo Fantasma - Borde blanco calado) */
.et_pb_button_two {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.et_pb_button_two:hover {
    background-color: #ffffff !important;
    color: #2ea3f2 !important;
    transform: translateY(-2px) !important;
}

/* Asegurar que en móviles se adapten y no se peguen */
@media (max-width: 768px) {
    .et_pb_button, 
    .et_pb_more_button {
        display: block !important;
        width: 100% !important;
        margin: 10px 0 !important;
    }
}
