/* ==========================================================
   PESCA 2000 - Hoja de estilos
   Estilo: rústico / cercano (madera, azul marino, amarillo cálido)
   ========================================================== */

/* ===== VARIABLES ===== */
:root {
    --color-azul-oscuro: #1a3a5c;
    --color-azul: #2c5f8d;
    --color-azul-claro: #4a8bb8;
    --color-amarillo: #f4c430;
    --color-amarillo-oscuro: #d4a017;
    --color-madera: #8b6f47;
    --color-madera-claro: #b89968;
    --color-crema: #f5efe0;
    --color-blanco: #fdfaf3;
    --color-texto: #2d2620;
    --color-texto-claro: #6b5d4f;
    --color-borde: #d8cdb6;

    --fuente-titulo: 'Bebas Neue', sans-serif;
    --fuente-acento: 'Special Elite', cursive;
    --fuente-cuerpo: 'Source Sans 3', system-ui, sans-serif;

    --sombra-suave: 0 4px 16px rgba(26, 58, 92, 0.08);
    --sombra-media: 0 8px 24px rgba(26, 58, 92, 0.15);
    --sombra-fuerte: 0 12px 36px rgba(26, 58, 92, 0.25);

    --radio: 6px;
    --transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-cuerpo);
    color: var(--color-texto);
    background-color: var(--color-blanco);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

a {
    color: var(--color-azul);
    text-decoration: none;
    transition: var(--transicion);
}

a:hover {
    color: var(--color-amarillo-oscuro);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(253, 250, 243, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    transition: var(--transicion);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(253, 250, 243, 0.98);
    box-shadow: var(--sombra-suave);
    border-bottom-color: var(--color-borde);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 56px;
    transition: var(--transicion);
}

.navbar.scrolled .nav-logo img {
    height: 48px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    color: var(--color-texto);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radio);
    transition: var(--transicion);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-menu a:hover {
    background-color: var(--color-azul-oscuro);
    color: var(--color-amarillo);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--color-azul-oscuro);
    border-radius: 3px;
    transition: var(--transicion);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(26, 58, 92, 0.92) 0%, rgba(26, 58, 92, 0.78) 100%),
        url('../img/tienda7.jpg') center/cover no-repeat;
    color: var(--color-blanco);
    text-align: center;
    padding: 100px 24px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--color-blanco));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-pretitle {
    font-family: var(--fuente-acento);
    color: var(--color-amarillo);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title {
    margin-bottom: 24px;
    line-height: 0.95;
}

.hero-logo {
    width: clamp(240px, 42vw, 440px);
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
    animation: heroLogoIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes heroLogoIn {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-blanco);
    border-radius: 12px;
    position: relative;
}

.hero-scroll span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-amarillo);
    border-radius: 2px;
    animation: scrollDown 1.8s ease infinite;
}

@keyframes scrollDown {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radio);
    font-family: var(--fuente-cuerpo);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transicion);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-amarillo);
    color: var(--color-azul-oscuro);
    box-shadow: 0 4px 14px rgba(244, 196, 48, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-amarillo-oscuro);
    color: var(--color-azul-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 196, 48, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-blanco);
    border: 2px solid var(--color-blanco);
}

.btn-secondary:hover {
    background-color: var(--color-blanco);
    color: var(--color-azul-oscuro);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ===== SECCIONES ===== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--fuente-acento);
    color: var(--color-amarillo-oscuro);
    font-size: 0.95rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    padding: 0 40px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: var(--color-amarillo-oscuro);
}

.section-tag::before { left: 0; }
.section-tag::after { right: 0; }

.section-title {
    font-family: var(--fuente-titulo);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-azul-oscuro);
    letter-spacing: 1px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-texto-claro);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== NOSOTROS ===== */
.nosotros {
    background-color: var(--color-crema);
    position: relative;
}

.nosotros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(139, 111, 71, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(26, 58, 92, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.nosotros-text .lead {
    font-size: 1.2rem;
    color: var(--color-azul-oscuro);
    margin-bottom: 20px;
    font-weight: 600;
}

.nosotros-text p {
    margin-bottom: 16px;
}

.nosotros-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed var(--color-borde);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--fuente-titulo);
    font-size: 2.8rem;
    color: var(--color-amarillo-oscuro);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-texto-claro);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nosotros-image {
    position: relative;
}

.nosotros-image img {
    border-radius: var(--radio);
    box-shadow: var(--sombra-fuerte);
    border: 8px solid var(--color-blanco);
    transform: rotate(-1deg);
    transition: var(--transicion);
}

.nosotros-image:hover img {
    transform: rotate(0deg);
}

.image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--color-amarillo);
    color: var(--color-azul-oscuro);
    padding: 20px 28px;
    border-radius: var(--radio);
    box-shadow: var(--sombra-media);
    transform: rotate(3deg);
    text-align: center;
}

.image-badge span {
    display: block;
    font-family: var(--fuente-acento);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.image-badge strong {
    display: block;
    font-family: var(--fuente-titulo);
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* ===== PRODUCTOS ===== */
.productos {
    background-color: var(--color-blanco);
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(139, 111, 71, 0.02) 100px,
            rgba(139, 111, 71, 0.02) 101px
        );
}

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

.producto-card {
    background-color: var(--color-blanco);
    border-radius: var(--radio);
    overflow: hidden;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    border: 1px solid var(--color-borde);
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-fuerte);
    border-color: var(--color-amarillo);
}

.producto-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.producto-card:hover .producto-img img {
    transform: scale(1.08);
}

.producto-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(26, 58, 92, 0.3) 0%, transparent 50%);
}

.producto-body {
    padding: 24px;
}

.producto-body h3 {
    font-family: var(--fuente-titulo);
    font-size: 1.6rem;
    color: var(--color-azul-oscuro);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.producto-body p {
    color: var(--color-texto-claro);
    font-size: 0.95rem;
}

.productos-cta {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1rem;
    color: var(--color-texto-claro);
}

.productos-cta a {
    color: var(--color-azul);
    font-weight: 700;
    border-bottom: 2px solid var(--color-amarillo);
    padding-bottom: 2px;
}

/* ===== GALERIA ===== */
.galeria {
    background-color: var(--color-crema);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}

.galeria-item {
    overflow: hidden;
    border-radius: var(--radio);
    box-shadow: var(--sombra-suave);
    cursor: pointer;
    position: relative;
}

.galeria-item-grande {
    grid-row: span 2;
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.galeria-item:hover img {
    transform: scale(1.1);
}

.galeria-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 92, 0);
    transition: var(--transicion);
}

.galeria-item:hover::after {
    background: rgba(26, 58, 92, 0.15);
}

/* ===== CONTACTO ===== */
.contacto {
    background-color: var(--color-blanco);
    background-image: 
        linear-gradient(135deg, rgba(26, 58, 92, 0.02) 0%, transparent 100%);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.info-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--color-azul-oscuro);
    color: var(--color-amarillo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.info-item h4 {
    font-family: var(--fuente-titulo);
    color: var(--color-azul-oscuro);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--color-texto-claro);
    font-size: 0.95rem;
}

.info-item a {
    color: var(--color-azul);
}

.info-mapa {
    margin-top: 12px;
}

.contacto-form-wrap {
    background-color: var(--color-crema);
    padding: 40px;
    border-radius: var(--radio);
    box-shadow: var(--sombra-suave);
    border: 1px solid var(--color-borde);
}

.contacto-form h3 {
    font-family: var(--fuente-titulo);
    color: var(--color-azul-oscuro);
    font-size: 1.8rem;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-azul-oscuro);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group label span {
    color: #c0392b;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--color-borde);
    border-radius: var(--radio);
    font-family: var(--fuente-cuerpo);
    font-size: 1rem;
    background-color: var(--color-blanco);
    transition: var(--transicion);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-amarillo);
    box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check input {
    width: auto;
    margin-top: 4px;
}

.form-check label {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-texto-claro);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    padding: 14px;
    border-radius: var(--radio);
    margin-bottom: 16px;
    font-weight: 600;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-azul-oscuro);
    color: var(--color-crema);
    padding: 70px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-amarillo) 0%, var(--color-amarillo-oscuro) 50%, var(--color-amarillo) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 80px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1) brightness(1.1);
}

.footer-col h4 {
    font-family: var(--fuente-titulo);
    color: var(--color-amarillo);
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
}

.footer-col p,
.footer-col a {
    color: var(--color-crema);
    font-size: 0.95rem;
    margin-bottom: 8px;
    opacity: 0.85;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--color-amarillo);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 239, 224, 0.15);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 58, 92, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--color-blanco);
    padding: 40px;
    border-radius: var(--radio);
    max-width: 600px;
    width: 100%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    font-family: var(--fuente-titulo);
    color: var(--color-azul-oscuro);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.modal-content p {
    margin-bottom: 12px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-azul-oscuro);
    width: 36px;
    height: 36px;
    line-height: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .nosotros-grid,
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background-color: var(--color-blanco);
        width: 100%;
        height: calc(100vh - 80px);
        padding: 40px 24px;
        gap: 0;
        transition: right 0.4s ease;
        box-shadow: var(--sombra-media);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-borde);
    }

    .nav-menu a {
        display: block;
        padding: 16px;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: 90vh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin: 0 auto;
    }

    .nosotros-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .image-badge {
        right: 10px;
        bottom: -10px;
        padding: 14px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .galeria-item-grande {
        grid-row: span 1;
    }

    .contacto-form-wrap {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-tag::before,
    .section-tag::after {
        width: 15px;
    }

    .section-tag {
        padding: 0 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        letter-spacing: 1px;
    }

    .info-item {
        gap: 12px;
    }

    .info-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* ==========================================================
   ELEMENTOS MARÍTIMOS - olas, burbujas y patrones
   ========================================================== */

/* ===== BURBUJAS animadas en el hero ===== */
.bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -80px;
    background: radial-gradient(circle at 30% 30%,
                                rgba(255, 255, 255, 0.6),
                                rgba(255, 255, 255, 0.15) 60%,
                                rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.3);
    animation: burbujaSube linear infinite;
    opacity: 0;
}

.bubble:nth-child(1)  { width: 18px;  height: 18px;  left:  8%; animation-duration: 14s; animation-delay:  0s; }
.bubble:nth-child(2)  { width: 28px;  height: 28px;  left: 18%; animation-duration: 18s; animation-delay:  3s; }
.bubble:nth-child(3)  { width: 12px;  height: 12px;  left: 28%; animation-duration: 11s; animation-delay:  1s; }
.bubble:nth-child(4)  { width: 36px;  height: 36px;  left: 42%; animation-duration: 22s; animation-delay:  6s; }
.bubble:nth-child(5)  { width: 16px;  height: 16px;  left: 52%; animation-duration: 13s; animation-delay:  2s; }
.bubble:nth-child(6)  { width: 22px;  height: 22px;  left: 62%; animation-duration: 16s; animation-delay:  5s; }
.bubble:nth-child(7)  { width: 14px;  height: 14px;  left: 72%; animation-duration: 12s; animation-delay:  0s; }
.bubble:nth-child(8)  { width: 30px;  height: 30px;  left: 82%; animation-duration: 19s; animation-delay:  4s; }
.bubble:nth-child(9)  { width: 10px;  height: 10px;  left: 92%; animation-duration: 10s; animation-delay:  7s; }
.bubble:nth-child(10) { width: 24px;  height: 24px;  left: 35%; animation-duration: 17s; animation-delay:  9s; }

@keyframes burbujaSube {
    0%   { transform: translateY(0) translateX(0) scale(0.8);  opacity: 0; }
    10%  { opacity: 0.7; }
    50%  { transform: translateY(-50vh) translateX(20px) scale(1); opacity: 0.6; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-105vh) translateX(-20px) scale(0.9); opacity: 0; }
}

/* ===== OLAS SVG en la base del hero ===== */
.ondas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 110px;
    z-index: 3;
    overflow: hidden;
    /* anular el degradado blanco que tenía el hero::before */
}

.hero::before {
    display: none;
}

.ondas svg {
    width: 100%;
    height: 100%;
}

.ondas-parallax > use {
    animation: olaSube 18s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.ondas-parallax > use:nth-child(1) { animation-delay:  -2s; animation-duration:  9s; }
.ondas-parallax > use:nth-child(2) { animation-delay:  -3s; animation-duration: 12s; }
.ondas-parallax > use:nth-child(3) { animation-delay:  -4s; animation-duration: 16s; }
.ondas-parallax > use:nth-child(4) { animation-delay:  -5s; animation-duration: 22s; }

@keyframes olaSube {
    0%   { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d( 85px, 0, 0); }
}

/* ===== ANZUELO decorativo en la sección Nosotros ===== */
.nosotros::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 30px;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%231a3a5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M32 4 v22 a14 14 0 1 1 -14 14'/><path d='M14 38 l4 4 l-4 4'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.12;
    transform: rotate(-15deg);
    pointer-events: none;
}

/* ===== PATRÓN DE ONDAS sutil en sección galería ===== */
.galeria {
    position: relative;
}

.galeria::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'><path d='M0 10 Q 25 0, 50 10 T 100 10' stroke='%231a3a5c' stroke-width='1' fill='none' opacity='0.08'/></svg>");
    background-repeat: repeat;
    pointer-events: none;
    opacity: 0.6;
}

.galeria .container { position: relative; z-index: 1; }

/* ===== SEPARADOR DE OLAS entre galería y contacto ===== */
.separador-olas {
    position: relative;
    height: 80px;
    margin-top: -1px;
    background-color: var(--color-crema);
    overflow: hidden;
}

.separador-olas svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* ===== Sección contacto con fondo de patrón sutil ===== */
.contacto {
    position: relative;
    overflow: hidden;
}

.contacto::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23f4c430' stroke-width='1.5'><circle cx='50' cy='50' r='20'/><circle cx='50' cy='50' r='35'/><circle cx='50' cy='50' r='48'/></svg>");
    background-repeat: no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

/* ===== Hero subtitle: bajarlo un poco respecto al logo grande ===== */
.hero .hero-subtitle {
    margin-top: 8px;
}

/* ===== Responsive: ajustes para móvil ===== */
@media (max-width: 768px) {
    .ondas { height: 60px; }
    .hero-logo { width: clamp(200px, 70vw, 320px); }
    .nosotros::after { width: 50px; height: 50px; top: 20px; right: 15px; }
    .bubble:nth-child(n+7) { display: none; } /* menos burbujas en móvil */
}

/* ===== Reducir movimiento si el usuario lo prefiere ===== */
@media (prefers-reduced-motion: reduce) {
    .bubble,
    .ondas-parallax > use,
    .hero-logo {
        animation: none !important;
    }
}
