/* =========================================
   1. VARIABLES DE MARCA
   ========================================= */
:root {
    --primary: #004e92;      
    --accent: #ff5500;       
    --dark: #212121;         
    --light: #f4f7f6;        
    --white: #ffffff;
    --font-hand: 'Caveat', cursive; /* Nueva fuente amistosa */
    
    --nav-height: 90px;      
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* =========================================
   2. RESET Y TIPOGRAFÍA
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Clase para el toque manuscrito */
.highlight {
    font-family: var(--font-hand);
    color: var(--accent);
    font-size: 1.4em;
    font-weight: 700;
    display: inline-block;
    vertical-align: middle;
    padding: 0 5px;
    /* EFECTO OUTER GLOW: Crea una sombra oscura en todas las direcciones */
    /* x-offset y-offset blur-radius color */
    text-shadow: 
       
        2px 2px 4px rgba(0, 0, 0, 0.9);  /* Sombra de apoyo para definición */
}

/* =========================================
   3. NAVEGACIÓN PROFESIONAL
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 100px; /* Ajustado de 100px para mejor equilibrio visual */
    width: auto;
    display: block;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

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

.burger {
    display: none;
    cursor: pointer;
    z-index: 1500;
    padding: 5px;
}

.burger div {
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px;
    transition: var(--transition);
    border-radius: 3px;
}

/* =========================================
   4. HERO SECTION (AJUSTADA)
   ========================================= */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('../sources/img/crucero.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 0.9;      /* 1. Pegamos las líneas del título principal */
    margin: 0;             /* 2. Quitamos márgenes exteriores */
    padding: 0;
}

.hero .highlight {
    font-size: 1.1em;      /* Ajuste proporcional */
    margin-top: -5px;      /* 3. Subimos la frase amarilla para pegarla al h1 */
    margin-bottom: 5px;    /* Espacio mínimo con el texto de abajo */
    display: block;        /* Para que respete los márgenes arriba/abajo */
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    line-height: 1.2;      /* 4. Interlineado más corto */
    margin: 0;             /* 5. Eliminamos margen superior para pegarlo a lo anterior */
    opacity: 0.9;
}

/* =========================================
   5. SECCIÓN DE NICHOS (GRID)
   ========================================= */
.servicios {
    padding: 80px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px; /* Reducido de 50px a 20px */
    line-height: 1;      /* Ajuste de interlineado */
    position: relative;
    padding-bottom: 5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background-color: var(--accent);
}

.grid-nichos {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 240px;
    background-size: cover;
    background-position: center;
}

.card-content { padding: 30px; text-align: center; }
.card-content h3 { font-size: 1.6rem; color: var(--primary); margin-bottom: 10px; }

.btn-card {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
}

/* =========================================
   6. SECCIÓN PARTNERS
   ========================================= */
.partners {
    background: var(--white);
    padding: 60px 5%;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.partners-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 40px;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.logos-container img {
    height: 45px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.logos-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================
   7. FOOTER Y RESPONSIVE
   ========================================= */
/* =========================================
   7. FOOTER ACTUALIZADO
   ========================================= */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 5% 40px; /* Un poco más de aire arriba */
    text-align: center;
}

/* Ajuste para tu PNG de alta resolución */
.img-footer {
    max-width: 250px; /* Ajusta este valor según qué tan grande quieras que se vea */
    height: auto;      /* Mantiene la proporción de los 664px de alto */
    margin-bottom: 20px;
    display: inline-block;
}

.footer-info p {
    font-size: 0.8rem;
    font-weight: 300;
    opacity: 0.7;
    margin-bottom: 5px;
    line-height: 1.2; /* Para que las líneas del footer estén bien juntas */
}

/* Ajuste opcional para móviles */
@media screen and (max-width: 768px) {
    .img-footer {
        max-width: 180px; /* Un poco más pequeño en celulares */
    }
}

@media screen and (max-width: 768px) {
    .burger { display: block; }
    .nav-links {
        position: fixed; right: 0; height: 92vh; top: 8vh;
        background-color: var(--white); width: 75%;
        transform: translateX(100%); transition: 0.4s;
        display: flex; flex-direction: column; align-items: center; padding-top: 50px;
    }
    .nav-active { transform: translateX(0%); }
    .logo img { height: 100px; } /* Ajuste de logo en móvil */
}

/* Animaciones Burger */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }