/* --- VARIABLES Y RESET --- */
:root {
    --color-primary: #005A9C;
    --color-dark: #333333;
    --color-light-gray: #F4F4F4;
    --color-white: #FFFFFF;
    --font-primary: 'Lato', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-primary); color: var(--color-dark); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-secondary); }

//* --- HEADER --- */
.main-header {
    background: var(--color-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}
.logo img {
    height: 50px; /* Tama���o del logo de Mas Travel aumentado */
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
.main-nav a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: bold;
    padding: 10px;
}

/* --- BOTONES --- */
.cta-button { display: inline-block; background: var(--color-primary); color: var(--color-white); padding: 12px 25px; border-radius: 5px; text-decoration: none; font-weight: bold; font-family: var(--font-secondary); transition: transform 0.3s, background-color 0.3s; border: 2px solid var(--color-primary); }
.cta-button:hover { transform: translateY(-3px); }
.cta-button--outline { background: transparent; color: var(--color-primary); }
.cta-button--outline:hover { background: var(--color-primary); color: var(--color-white); }

/* --- HERO SECTION --- */
.hero-section {
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    color: var(--color-white);
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5em;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- ESTILOS CORREGIDOS PARA EL BOT���N DE ESCAPADAS --- */
.hero-buttons .cta-button--outline {
    background-color: #FFC107; /* Tu color de acento amarillo */
    border-color: #FFC107; /* Borde del mismo color */
    color: var(--color-dark); /* Texto oscuro para que contraste con el amarillo */
}
.hero-buttons .cta-button--outline:hover {
    background-color: #ffca2c; /* Un amarillo un poco m���s claro al pasar el mouse */
    border-color: #ffca2c;
    color: var(--color-dark);
}
/* --- SECCIONES --- */
.confidence-section { padding: 60px 0; background: var(--color-light-gray); }
.confidence-section .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.confidence-item h3 { margin-bottom: 10px; color: var(--color-primary); }

/* --- FOOTER --- */
.main-footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding-top: 50px;
}
.main-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-logo {
    height: 70px;
    margin-bottom: 15px;
    width: auto;
}
.main-footer h4 {
    font-family: var(--font-secondary);
    margin-bottom: 15px;
}
.main-footer ul {
    list-style: none;
    padding: 0;
}
.main-footer a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}
.main-footer a:hover {
    color: #FFC107;
}
.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #555;
    font-size: 0.9em;
}

/* --- ESTILOS PARA EL SELLO SERNATUR --- */
.header-certification {
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}
.header-certification img {
    height: 40px;
}
.header-certification span {
    font-size: 0.8em;
    color: #555;
    line-height: 1.2;
}

/* --- ESTILOS PARA EL MEN��� M���VIL --- */
.mobile-menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- ESTILOS PARA P���GINAS DE VIAJES Y TARJETAS --- */
.page-content {
    padding: 60px 0;
}
.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}
.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Crea la grilla responsive */
    gap: 30px;
}
.travel-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}
.travel-card:hover {
    transform: translateY(-10px);
}
.travel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    color: var(--color-white);
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 10px;
    align-self: flex-start;
}
.card-tag--classic {
    background: var(--color-primary);
}
.card-tag--escape {
    background: #FFC107;
    color: var(--color-dark);
}
.card-content h3 {
    margin-bottom: 10px;
    flex-grow: 1;
}
.card-info {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px;
}
.card-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 15px 0;
    text-align: right;
}
.cta-button--small {
    padding: 8px 18px;
    font-size: 0.9em;
    width: 100%;
    text-align: center;
}
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2em;
    padding: 40px;
    background: var(--color-light-gray);
    border-radius: 8px;
}

/* --- NUEVOS ESTILOS PARA LA TARJETA DE VIAJE --- */
.card-dates {
    font-size: 0.9em;
    color: #555;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee; /* L���nea separadora sutil */
}
.card-dates ul {
    list-style: none; /* Quita los puntos de la lista */
    padding-left: 0;
    margin-top: 5px;
    /* Para mostrar fechas en columnas si son muchas */
    column-count: 2;
    column-gap: 10px;
}
.card-dates li {
    margin-bottom: 3px;
}
/* --- CONTACTO PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Crea dos columnas de igual tama���o */
    gap: 40px; /* Espacio entre las columnas */
    background: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.contact-info p {
    margin-bottom: 15px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block; /* Pone la etiqueta encima del campo */
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1em;
}
.form-group textarea {
    resize: vertical; /* Permite al usuario ajustar la altura */
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
    .main-nav, .header-certification {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .main-nav.active {
        display: block;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .main-nav.active ul {
        flex-direction: column;
    }
    .main-nav.active li {
        text-align: center;
        border-bottom: 1px solid var(--color-light-gray);
    }
}
/* --- ESTILOS PARA NOTIFICACIONES DEL FORMULARIO --- */
.notice {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid transparent;
    text-align: center;
}
.notice.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}
.notice.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
/* --- ESTILOS PARA LA SECCIÓN DE ENLAZADO INTERNO --- */
.internal-linking-section {
    padding: 60px 0;
}
.internal-linking-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 30px;
}
.linking-box {
    background: var(--color-white);
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.linking-box h2 {
    color: var(--color-primary);
    margin-bottom: 15px;
}
.linking-box p {
    margin-bottom: 25px;
    min-height: 80px; /* Ayuda a alinear los botones si los textos son de diferente largo */
}

/* Hacemos que en celulares se vea una columna debajo de la otra */
@media (max-width: 768px) {
    .internal-linking-section .container {
        grid-template-columns: 1fr;
    }
    .linking-box p {
        min-height: auto; /* Quitamos la altura mínima en móviles */
    }
}
/* --- ESTILOS PARA EL BLOG --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.article-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
.article-image-link {
    display: block;
}
.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}
.article-card:hover img {
    transform: scale(1.05);
}
.card-date {
    font-size: 0.8em;
    color: #777;
    margin-bottom: 10px;
    display: block;
}
.article-summary {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 20px;
}
.article-card h3 a {
    text-decoration: none;
    color: var(--color-dark);
}

/* --- ESTILOS PARA EL ARTÍCULO INDIVIDUAL --- */
.article-container {
    max-width: 800px; /* Ancho de lectura cómodo */
}
.article-meta {
    margin-bottom: 20px;
    color: #777;
    font-style: italic;
}
.article-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}
.article-content {
    line-height: 1.8;
}
.article-content p {
    margin-bottom: 20px;
}
.article-content h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    text-align: left;
}