/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ==================== VARIABLES Y RESETEOS ==================== */

:root {
    --primary-color: #1a4d7a;
    --secondary-color: #2b6ba8;
    --accent-color: #d4af37;
    --light-color: #f4f1de;
    --dark-color: #0f2d45;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --success-color: #27ae60;
    --white: #ffffff;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', 'Segoe UI', Tahoma, sans-serif;

    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --shadow-sm: 0 2px 8px rgba(26, 77, 122, 0.10);
    --shadow-md: 0 6px 20px rgba(26, 77, 122, 0.15);
    --shadow-lg: 0 12px 40px rgba(26, 77, 122, 0.22);

    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 24px;

    --container-max: 1200px;
    --container-pad: clamp(1rem, 4vw, 2rem);
    --section-pad: clamp(2rem, 4vw, 3.5rem);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { text-decoration: none; color: inherit; }

/* ==================== CONTAINER & TITLES ==================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--section-pad) var(--container-pad);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.75;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== NAVBAR ==================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 4px 20px rgba(15, 45, 69, 0.35);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0.85rem var(--container-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.logo-img { height: 4rem; width: auto; }

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.menu-toggle:hover { border-color: var(--accent-color); }

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
    display: flex;
    gap: 0.15rem;
    align-items: center;
}

.nav-link {
    color: rgba(255,255,255,0.88);
    font-weight: 500;
    font-size: 0.88rem;
    position: relative;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    border-radius: 1px;
    transition: width var(--transition-smooth);
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.10);
}

.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 1.4rem); }
.nav-link.active { color: var(--accent-color); }

/* ==================== HERO ==================== */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-slider { position: absolute; inset: 0; z-index: -2; }

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: zoomInSlight 15s ease-out forwards;
}

.slide.active { opacity: 1; }

@keyframes zoomInSlight {
    from { transform: scale(1); }
    to   { transform: scale(1.06); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(15,45,69,0.72) 0%, rgba(26,77,122,0.60) 50%, rgba(15,45,69,0.72) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: clamp(1rem, 5vw, 3rem);
    max-width: 800px;
    width: 100%;
    animation: zoomIn 0.7s ease-out;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 3px 12px rgba(0,0,0,0.3);
    animation: slideUp 0.8s ease-out 0.2s both;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    opacity: 0.93;
    animation: slideUp 0.8s ease-out 0.4s both;
    font-weight: 300;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-body);
    transition: var(--transition-bounce);
    box-shadow: 0 8px 24px rgba(212,175,55,0.35);
    animation: slideUp 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.25);
    transition: left 0.35s ease;
}

.cta-button:hover::before { left: 100%; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(212,175,55,0.45); }
.cta-button:active { transform: translateY(-1px); }

.slider-indicators {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.7);
}

.indicator.active {
    background: white;
    width: 28px;
    border-radius: 5px;
}

.wave-divider {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 90px;
    z-index: 2;
}

.wave-divider svg { width: 100%; height: 100%; display: block; }

/* ==================== KEYFRAMES ==================== */

@keyframes fadeInLeft  { from { opacity:0; transform:translateX(-20px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(20px);  } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInUp    { from { opacity:0; transform:translateY(28px);  } to { opacity:1; transform:translateY(0); } }
@keyframes slideUp     { from { opacity:0; transform:translateY(40px);  } to { opacity:1; transform:translateY(0); } }
@keyframes bounce      { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-8px); } }

/* ==================== SERVICIOS ==================== */

.servicios {
    padding: var(--section-pad) 0;
    background: linear-gradient(180deg, white 0%, var(--light-color) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 0;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

/* Imagen superior a sangre completa — altura fija uniforme */
.feature-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    line-height: 0;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.03);
}

/* Línea de acento debajo de la imagen */
.feature-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: background var(--transition-smooth);
}

.feature-card:hover .feature-image::after {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

/* Contenido de texto con padding propio */
.feature-card-body {
    padding: 1.5rem 1.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-family: var(--font-display);
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-dark);
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

/* ==================== COURSES ==================== */

.courses {
    padding: var(--section-pad) 0;
    background: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.course-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.course-card.featured { border: 3px solid var(--secondary-color); }

.ribbon {
    position: absolute;
    top: 25px; right: -38px;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 0.4rem 3rem;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* ===== COURSE HEADER - ALTURA UNIFORME ===== */
.course-header {
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    color: white;
    padding: 1.75rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    flex-shrink: 0;
}

.course-header h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.course-type {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}

.course-image { width: 100%; height: 190px; overflow: hidden; }
.course-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.course-card:hover .course-image img { transform: scale(1.04); }

.course-details { padding: 1.5rem; flex-grow: 1; }
.course-details p { font-weight: 600; color: var(--primary-color); margin-bottom: 0.5rem; }
.course-details ul { list-style: none; margin: 0.75rem 0; }

.course-details li {
    padding: 0.4rem 0 0.4rem 1.6rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.92rem;
    line-height: 1.5;
}

.course-details li::before { content: '✓'; position: absolute; left: 0; color: var(--success-color); font-weight: bold; }

.course-note {
    background: rgba(212,175,55,0.10);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-top: 0.75rem;
    border-left: 4px solid var(--accent-color);
    font-size: 0.88rem;
    color: var(--primary-color);
    font-weight: 500;
}

.boat-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--light-color);
    border-top: 1px solid #e4dfd0;
    text-align: center;
}

.spec { font-size: 0.82rem; color: var(--text-dark); font-weight: 500; line-height: 1.5; }
.spec strong { display: block; color: var(--primary-color); margin-bottom: 0.2rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.4px; }
.spec-icon { height: 28px; width: 28px; margin: 0 auto 0.4rem; opacity: 0.75; }

.course-footer {
    padding: 1.25rem 1.5rem;
    background: var(--light-color);
    border-top: 1px solid #e4dfd0;
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

/* ==================== TÍTULOS ==================== */

.titulos {
    padding: var(--section-pad) 0;
    background: linear-gradient(180deg, white 0%, var(--light-color) 100%);
}

.titulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.titulo-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.titulo-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.titulo-image { width: 100%; height: 200px; overflow: hidden; }
.titulo-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.titulo-card:hover .titulo-image img { transform: scale(1.05); }

/* ===== TITULO HEADER - ALTURA UNIFORME ===== */
.titulo-header {
    background: linear-gradient(135deg, var(--dark-color), var(--secondary-color));
    color: white;
    padding: 1.25rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 110px;
    flex-shrink: 0;
}

.titulo-header h3 {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.titulo-code {
    display: inline-block;
    background: var(--accent-color);
    color: var(--dark-color);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

.titulo-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--light-color);
    flex-grow: 1;
}

.titulo-spec { text-align: center; font-size: 0.82rem; line-height: 1.5; }
.titulo-spec strong { display: block; color: var(--primary-color); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.2rem; }
.titulo-spec span { color: var(--text-dark); font-size: 0.8rem; }
.spec-icon-small { height: 22px; width: 22px; margin: 0 auto 0.3rem; opacity: 0.7; }

.titulo-btn {
    margin: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: block;
}

.titulo-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ==================== SPECIAL CASES ==================== */

.special-cases {
    padding: var(--section-pad) 0;
    background: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.case-card {
    background: linear-gradient(135deg, rgba(26,77,122,0.04), rgba(43,107,168,0.04));
    border: 2px solid var(--secondary-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.case-card:hover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(212,175,55,0.02));
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.case-card h3 { color: var(--primary-color); margin-bottom: 0.85rem; font-size: 1.2rem; font-family: var(--font-display); }
.case-card p { color: var(--text-dark); line-height: 1.75; font-size: 0.95rem; }

/* ==================== PRICING ==================== */

.pricing {
    padding: var(--section-pad) 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.pricing .section-title { color: white; }
.pricing .section-title::after { background: var(--accent-color); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.75rem;
    margin: 2rem 0 1.5rem;
    align-items: center;
}

.pricing-card {
    background: rgba(255,255,255,0.96);
    padding: 2rem 1.75rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transition: var(--transition-bounce);
    color: var(--text-dark);
}

.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,0.28); }

.pricing-card.featured {
    background: white;
    border: 3px solid var(--accent-color);
    transform: scale(1.04);
}

.pricing-card.featured:hover { transform: scale(1.04) translateY(-8px); }

.pricing-card h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--primary-color); font-family: var(--font-display); }

.price {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--accent-color);
    margin: 1rem 0;
}

.price-note { font-size: 0.88rem; color: #666; line-height: 1.5; }

.pricing-info {
    background: rgba(255,255,255,0.10);
    padding: 2rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
}

.pricing-info h3 { color: white; margin-bottom: 0.75rem; margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.2rem; }
.pricing-info h3:first-child { margin-top: 0; }
.pricing-info p { color: rgba(255,255,255,0.9); font-size: 0.95rem; line-height: 1.7; }

.requirements-title { margin-top: 2rem; }

.requirements-list { list-style: none; max-width: 480px; margin: 1rem auto; }

.requirements-list li {
    padding: 0.45rem 0 0.45rem 2rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    position: relative;
}

.requirements-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-color); font-weight: bold; }

/* ==================== CONTACT ==================== */

.contact {
    padding: var(--section-pad) 0;
    background: linear-gradient(180deg, var(--light-color) 0%, white 60%);
}

/* 4 tarjetas en fila */
.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
}

.contact-card-body h3 {
    font-family: var(--font-display);
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-card-body p {
    color: var(--text-dark);
    font-size: 0.88rem;
    line-height: 1.75;
}

.contact-card-body a {
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.contact-card-body a:hover { color: var(--accent-color); }

/* Mapa full-width debajo */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

/* ==================== FOOTER ==================== */

.footer {
    background: linear-gradient(135deg, #071c2b, var(--dark-color));
    color: white;
    padding: 3.5rem 0 0;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad) 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 2rem;
}

.footer-section h4 { color: var(--accent-color); margin-bottom: 1rem; font-size: 1rem; font-family: var(--font-display); }
.footer-section p { opacity: 0.85; line-height: 1.8; font-size: 0.9rem; }
.footer-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-section ul li a { color: rgba(255,255,255,0.75); font-size: 0.9rem; transition: var(--transition-smooth); display: inline-block; }
.footer-section ul li a:hover { color: var(--accent-color); transform: translateX(3px); }
.footer-section a { color: rgba(255,255,255,0.75); transition: var(--transition-smooth); }
.footer-section a:hover { color: var(--accent-color); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.10);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.25rem var(--container-pad);
    text-align: center;
    opacity: 0.65;
    font-size: 0.85rem;
}

/* ==================== RESPONSIVE — TABLET (≤1024px) ==================== */

@media (max-width: 1024px) {
    /* Navbar */
    .nav-link { font-size: 0.85rem; padding: 0.5rem 0.55rem; }

    /* Grids */
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .titulos-grid  { grid-template-columns: repeat(2, 1fr); }

    /* Precios */
    .pricing-card.featured { transform: scale(1); }
    .pricing-card.featured:hover { transform: translateY(-8px); }

    /* Contacto */
    .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .map-container iframe { height: 380px; }
}

/* ==================== RESPONSIVE — MOBILE (≤768px) ==================== */

@media (max-width: 768px) {
    :root {
        --section-pad: clamp(1.5rem, 4vw, 2.5rem);
        --container-pad: 1.25rem;
    }

    /* --- Navbar --- */
    .menu-toggle { display: flex; }

    /* MENÚ MOBILE CENTRADO */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--dark-color);
        padding: 0;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .nav-menu.active { display: flex; }

    .nav-link {
        padding: 1rem var(--container-pad);
        border-radius: 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        white-space: normal;
        text-align: center;
        color: rgba(255,255,255,0.88);
    }

    .nav-link:hover {
        background: rgba(255,255,255,0.08);
        color: white;
    }

    .nav-link:last-child { border-bottom: none; }
    .nav-link::after { display: none; }

    /* --- Hero --- */
    .hero-title { font-size: clamp(1.8rem, 7vw, 2.8rem); }
    .hero-subtitle { font-size: clamp(0.95rem, 3vw, 1.2rem); margin-bottom: 2rem; }
    .hero-content { padding: 1.25rem; }
    .slider-indicators { bottom: 3.5rem; }
    .wave-divider { height: 60px; }

    /* --- Grids → 1 columna --- */
    .features-grid,
    .courses-grid,
    .titulos-grid,
    .cases-grid,
    .pricing-grid { grid-template-columns: 1fr; gap: 1.25rem; }

    /* --- Cursos --- */
    .course-card.featured,
    .pricing-card.featured { transform: scale(1); border-width: 2px; }
    .course-card.featured:hover,
    .pricing-card.featured:hover { transform: translateY(-6px); }

    /* Specs 2 col en móvil */
    .boat-specs,
    .titulo-specs { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    /* --- Precios --- */
    .pricing-info { padding: 1.5rem; }

    /* --- Contacto --- */
    .contact-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .map-container iframe { height: 280px; }

    /* --- Footer --- */
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}

/* ==================== RESPONSIVE — MOBILE PEQUEÑO (≤480px) ==================== */

@media (max-width: 480px) {
    :root { --section-pad: 1.5rem; }

    /* Logo: solo imagen */
    .logo span { display: none; }
    .logo-img { height: 3rem; }

    /* Hero */
    .hero-title { font-size: clamp(1.6rem, 8vw, 2.2rem); }
    .hero-subtitle { font-size: 0.92rem; }
    .cta-button { padding: 0.75rem 1.75rem; font-size: 0.9rem; }

    /* Grids */
    .features-grid,
    .courses-grid,
    .titulos-grid,
    .pricing-grid,
    .cases-grid { grid-template-columns: 1fr; gap: 1rem; }

    /* Specs mantienen 2 col */
    .boat-specs,
    .titulo-specs { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; padding: 1rem; }

    /* Ribbon */
    .ribbon { font-size: 0.7rem; right: -30px; top: 20px; padding: 0.35rem 2.5rem; }

    /* Precios */
    .pricing-info { padding: 1.25rem; }

    /* Contacto */
    .contact-cards-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .map-container iframe { height: 240px; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 1.25rem; }
    .footer-section { text-align: center; }
    .footer-section ul { align-items: center; }
}

/* ==================== LANDSCAPE PHONES ==================== */

@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: 100vw; }
    .hero-title { font-size: clamp(1.4rem, 4vw, 2rem); }
    .hero-subtitle { font-size: 0.88rem; margin-bottom: 1.25rem; }
    .slider-indicators { bottom: 2rem; }
    .wave-divider { height: 50px; }
}

/* ==================== UTILS ==================== */

.text-center { text-align: center; }
.mt { margin-top: 2rem; }
.mb { margin-bottom: 2rem; }

/* ==================== PÁGINAS LEGALES ==================== */

.legal-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero banner de página legal */
.legal-hero {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: clamp(3rem, 8vw, 5rem) var(--container-pad);
    text-align: center;
}

.legal-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.legal-hero p {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    opacity: 0.8;
    font-weight: 300;
}

/* Contenido legal */
.legal-content {
    flex-grow: 1;
    background: white;
    padding: clamp(2.5rem, 6vw, 4rem) var(--container-pad);
}

.legal-content-inner {
    max-width: 860px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--primary-color);
    margin: 2.5rem 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-color);
    line-height: 1.3;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--secondary-color);
    margin: 1.75rem 0 0.6rem;
}

.legal-content p {
    color: var(--text-dark);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin: 0.75rem 0 1rem 1.5rem;
    color: var(--text-dark);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.8;
}

.legal-content li { margin-bottom: 0.4rem; }

.legal-content a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-smooth);
}

.legal-content a:hover { color: var(--accent-color); }

.legal-content hr {
    border: none;
    border-top: 1px solid #e4dfd0;
    margin: 2.5rem 0;
}

/* Botón volver */
.legal-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.legal-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* Navegación interna entre documentos legales */
.legal-nav {
    background: var(--light-color);
    border-top: 1px solid #e4dfd0;
    padding: 1.5rem var(--container-pad);
}

.legal-nav-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.legal-nav span {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.legal-nav a {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1.5px solid var(--secondary-color);
    transition: var(--transition-smooth);
}

.legal-nav a:hover,
.legal-nav a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive legal pages */
@media (max-width: 768px) {
    .legal-hero { padding: 2.5rem var(--container-pad); }
    .legal-content h2 { margin-top: 2rem; }
    .legal-nav-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .legal-hero { padding: 2rem 1.25rem; }
    .legal-content { padding: 2rem 1.25rem; }
    .legal-content ul,
    .legal-content ol { margin-left: 1rem; }
    .legal-nav { padding: 1.25rem; }
    .legal-nav-inner { gap: 0.5rem; }
}