@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Nunito:wght@300;400;700&display=swap');

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Nunito', sans-serif; /* Readable font for bulk text */
    background-color: #fcfdfa; /* Very light, warm white */
    color: #4a4a4a;
    line-height: 1.6;
}

h1, h2, h3, h4, .cursive-text {
    font-family: 'Caveat', cursive; /* Space-saving cursive for headings */
    color: #5c8d6d; /* Nature green */
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(226, 240, 203, 0.96); /* Pastel green con sutil translucidez y blur */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(92, 141, 109, 0.2);
    transition: padding 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

header h1 {
    font-size: 2.2rem;
    margin: 0;
}

header a {
    text-decoration: none;
    color: #5c8d6d;
}

nav {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: #5c8d6d;
    font-weight: 700;
    font-family: 'Caveat', cursive;
    font-size: 1.45rem;
    line-height: 1.2;
    transition: color 0.25s ease, transform 0.2s ease;
    display: inline-block;
}

nav ul li a:hover {
    color: #3b5a46;
    transform: translateY(-1px);
}

.hero {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)), url('img/isla-panoramica.jpg');
    background-size: cover;
    background-position: center 60%;
    padding: 6rem 5%;
    text-align: center;
    border-bottom: 2px solid #e2f0cb;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

main {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

main.historia-main-container {
    max-width: 100%;
    padding: 4rem 5%;
    background-image: linear-gradient(rgba(10, 16, 12, 0.22), rgba(10, 16, 12, 0.28)), url('img/atardecer-isla.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

main.historia-main-container .content-section {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    background: rgba(12, 22, 16, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

main.historia-main-container .content-section h2 {
    color: #a3e4b7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    border-bottom: 2px dashed rgba(163, 228, 183, 0.35);
}

main.historia-main-container .content-section h3 {
    color: #d1f2dc;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

main.historia-main-container .content-section p,
main.historia-main-container .content-section ul,
main.historia-main-container .content-section li {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

main.historia-main-container .content-section strong {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
}

main.historia-main-container .tip-viajero {
    background: rgba(32, 60, 42, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-left: 4px solid #81c784;
    color: #f0fdf4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

main.historia-main-container .tip-viajero strong {
    color: #ffffff;
}

main.historia-main-container .history-media-card {
    background: rgba(18, 28, 22, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

main.historia-main-container .history-caption {
    background: rgba(14, 22, 17, 0.75);
    color: #d1fae5;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

main.historia-main-container .history-caption strong {
    color: #ffffff;
}

main.historia-main-container .postal-card {
    background: rgba(18, 28, 22, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

main.historia-main-container .postal-info {
    background: rgba(14, 22, 17, 0.75);
}

main.historia-main-container .postal-title {
    color: #d1fae5;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

main.historia-main-container .transport-accordion {
    background: rgba(18, 28, 22, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

main.historia-main-container .transport-accordion[open] {
    background: rgba(14, 22, 17, 0.75);
    border-color: #81c784;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

main.historia-main-container .accordion-title-wrap h3 {
    color: #a3e4b7;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

main.historia-main-container .accordion-title-wrap h3 small {
    color: #c4ebd0;
}

main.historia-main-container .accordion-chevron {
    border-right-color: #a3e4b7;
    border-bottom-color: #a3e4b7;
}

main.historia-main-container .accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

main.historia-main-container .accordion-content p {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

main.historia-main-container .transport-points li {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

main.historia-main-container .transport-points li strong {
    color: #ffffff;
}

.content-section {
    margin-bottom: 3rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.content-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px dashed #e2f0cb;
    padding-bottom: 0.5rem;
}

.content-section p, .content-section ul {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.content-section ul {
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-block;
    background-color: #5c8d6d;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #3b5a46;
}

footer {
    background-color: #e2f0cb;
    text-align: center;
    padding: 2rem 5%;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    color: #3b5a46;
}

footer a {
    color: #5c8d6d;
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.map-container {
    margin-top: 1.5rem;
    width: 100%;
    height: 380px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #d4e8c7;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 0.35rem 3%;
        flex-direction: row;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    nav ul {
        margin: 0;
        padding: 0;
        gap: 0.55rem 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li a {
        font-size: 1.25rem;
        line-height: 1.15;
        padding: 1px 3px;
    }
    .hero {
        padding: 4.5rem 5%;
        background-position: center 65%;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    main.historia-main-container {
        padding: 2.5rem 3.5%;
        background-attachment: scroll;
    }
}

@media (max-width: 380px) {
    header {
        padding: 0.25rem 2%;
    }
    nav ul {
        gap: 0.35rem 0.55rem;
    }
    nav ul li a {
        font-size: 1.15rem;
    }
}

/* ===================================================
   INTRO SPLASH - ANIMACIÓN DEL CARPINCHO (SENIOR UX)
   =================================================== */
.intro-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #ffffff 0%, #f6faf1 55%, #e6f0da 100%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-splash.intro-fade-out {
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
}

.skip-btn {
    position: absolute;
    top: 24px;
    right: 28px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #cce2bb;
    color: #497255;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    z-index: 20;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.skip-btn:hover {
    background: #5c8d6d;
    color: #ffffff;
    border-color: #5c8d6d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(92, 141, 109, 0.25);
}

.intro-content-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    padding: 10px;
}

.intro-stage-container {
    position: relative;
    width: min(80vw, 340px);
    height: min(80vw, 340px);
    max-height: 48vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ondas circulares / aureolas del charco de agua */
.water-pond-ambient {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 110px;
    pointer-events: none;
    z-index: 1;
}

.water-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(135, 195, 218, 0.5);
    background: radial-gradient(ellipse at center, rgba(162, 220, 240, 0.35) 0%, rgba(162, 220, 240, 0.08) 50%, transparent 75%);
    opacity: 0;
}

.water-ring.ring-1 {
    width: 140px;
    height: 55px;
    animation: pond-breathe 2.4s ease-out infinite;
}

.water-ring.ring-2 {
    width: 210px;
    height: 80px;
    animation: pond-breathe 2.4s ease-out 0.8s infinite;
}

.water-ring.ring-3 {
    width: 280px;
    height: 105px;
    animation: pond-breathe 2.4s ease-out 1.6s infinite;
}

@keyframes pond-breathe {
    0% {
        transform: translate(-50%, -50%) scale(0.65);
        opacity: 0;
    }
    40% {
        opacity: 0.85;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 0;
    }
}

/* Escenario del carpincho */
.carpincho-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.c-step {
    position: absolute;
    width: 95%;
    height: 95%;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.c-step.active {
    opacity: 1;
    pointer-events: auto;
}

/* Fase 1: Caminando hacia el charco */
.c-step1.active {
    animation: carpincho-walk 1.3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes carpincho-walk {
    0% {
        transform: translateX(-65px) translateY(4px);
    }
    25% {
        transform: translateX(-40px) translateY(-8px);
    }
    50% {
        transform: translateX(-20px) translateY(3px);
    }
    75% {
        transform: translateX(-7px) translateY(-6px);
    }
    100% {
        transform: translateX(0px) translateY(0px);
    }
}

/* Fase 2: Mirando con ternura al visitante */
.c-step2.active {
    animation: carpincho-look 1.2s ease-out forwards;
}

@keyframes carpincho-look {
    0% {
        transform: scale(0.97) translateY(2px);
    }
    50% {
        transform: scale(1.02) translateY(-3px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

/* Fase 3: Salto y chapuzón */
.c-step3.active {
    animation: carpincho-dive 1.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes carpincho-dive {
    0% {
        transform: translateY(8px) scale(0.95);
    }
    35% {
        transform: translateY(-42px) scale(1.06);
    }
    65% {
        transform: translateY(14px) scale(1.02);
    }
    100% {
        transform: translateY(8px) scale(1);
    }
}

/* Salpicaduras de agua animadas */
.water-splash-fx {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 90px;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
}

.water-splash-fx.active {
    opacity: 1;
}

.splash-drop {
    position: absolute;
    width: 8px;
    height: 12px;
    background: #7ec0db;
    border-radius: 50%;
    opacity: 0;
}

.water-splash-fx.active .drop-1 {
    left: 20%;
    animation: drop-shoot-1 0.75s ease-out forwards;
}
.water-splash-fx.active .drop-2 {
    left: 38%;
    animation: drop-shoot-2 0.85s ease-out 0.05s forwards;
}
.water-splash-fx.active .drop-3 {
    left: 62%;
    animation: drop-shoot-3 0.8s ease-out 0.08s forwards;
}
.water-splash-fx.active .drop-4 {
    left: 80%;
    animation: drop-shoot-4 0.75s ease-out 0.02s forwards;
}

@keyframes drop-shoot-1 {
    0% { transform: translate(0, 0) scale(0.5); opacity: 1; }
    50% { transform: translate(-32px, -48px) scale(1.3); opacity: 0.9; }
    100% { transform: translate(-48px, 16px) scale(0.3); opacity: 0; }
}

@keyframes drop-shoot-2 {
    0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
    50% { transform: translate(-12px, -64px) scale(1.4); opacity: 0.95; }
    100% { transform: translate(-18px, 22px) scale(0.3); opacity: 0; }
}

@keyframes drop-shoot-3 {
    0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
    50% { transform: translate(16px, -58px) scale(1.4); opacity: 0.95; }
    100% { transform: translate(26px, 22px) scale(0.3); opacity: 0; }
}

@keyframes drop-shoot-4 {
    0% { transform: translate(0, 0) scale(0.5); opacity: 1; }
    50% { transform: translate(36px, -44px) scale(1.2); opacity: 0.9; }
    100% { transform: translate(52px, 16px) scale(0.3); opacity: 0; }
}

/* Texto de bienvenida en la intro */
.intro-caption {
    position: relative;
    margin-top: 6px;
    text-align: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 4;
}

.intro-caption.visible {
    opacity: 1;
}

.intro-welcome {
    font-family: 'Caveat', cursive;
    font-size: 1.6rem;
    color: #638a6e;
    margin: 0;
    line-height: 1.1;
}

.intro-title {
    font-family: 'Caveat', cursive;
    font-size: 2.7rem;
    color: #3b5a46;
    margin: 0;
    line-height: 1;
}

.intro-island {
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7d9a83;
    margin-top: 3px;
    font-weight: 700;
}

/* ===================================================
   INTRO SPLASH - ANIMACIÓN DEL GATO CON CARRITO (INDEX)
   =================================================== */
.cat-splash-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.cat-intro-header {
    text-align: center;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 10;
}

.cat-intro-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.cat-intro-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    color: #5c8d6d;
    margin: 0;
    line-height: 1.1;
}

.cat-intro-title {
    font-family: 'Caveat', cursive;
    font-size: 3.6rem;
    color: #3b5a46;
    margin: 0.15rem 0;
    line-height: 1;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.06);
}

.cat-intro-caption {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: #4f7358;
    font-weight: 700;
    margin-top: 4px;
}

.cat-stage-track {
    position: relative;
    width: 100vw;
    height: 270px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.cat-ground-line {
    position: absolute;
    bottom: 24px;
    left: 0;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        #b8d8a5 0,
        #b8d8a5 18px,
        transparent 18px,
        transparent 32px
    );
    opacity: 0.85;
}

.cat-cart-mover {
    position: absolute;
    bottom: 26px;
    left: 0;
    width: 290px;
    height: 240px;
    animation: cat-cross-screen 3.8s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes cat-cross-screen {
    0% {
        transform: translateX(-350px);
    }
    100% {
        transform: translateX(calc(100vw + 80px));
    }
}

.cat-cart-sprite-wrap {
    width: 100%;
    height: 100%;
    animation: cat-trot-bob 0.28s infinite alternate ease-in-out;
}

@keyframes cat-trot-bob {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateY(-7px) rotate(-1.5deg);
    }
}

.cat-cart-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.1));
    display: block;
}

.cat-speed-lines {
    position: absolute;
    left: -18px;
    bottom: 45px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.65;
}

.speed-line {
    height: 3px;
    background: #84bd97;
    border-radius: 3px;
    animation: speed-pulse 0.25s infinite alternate ease-in-out;
}

.speed-line.l1 { width: 34px; }
.speed-line.l2 { width: 48px; }
.speed-line.l3 { width: 26px; }

@keyframes speed-pulse {
    0% { transform: scaleX(0.7); opacity: 0.3; }
    100% { transform: scaleX(1.2); opacity: 0.8; }
}

@media (max-width: 600px) {
    .cat-cart-mover {
        width: 220px;
        height: 180px;
        bottom: 24px;
    }
    .cat-stage-track {
        height: 210px;
    }
    .cat-intro-title {
        font-size: 2.7rem;
    }
    .cat-intro-subtitle {
        font-size: 1.5rem;
    }
    .cat-intro-caption {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .skip-btn {
        top: 16px;
        right: 16px;
        padding: 5px 14px;
        font-size: 0.85rem;
    }
    .intro-title {
        font-size: 2.2rem;
    }
    .intro-welcome {
        font-size: 1.35rem;
    }
}

/* ===================================================
   SECCIÓN: CÓMO LLEGAR (TRANSPORTE DESPLEGABLE)
   =================================================== */
#como-llegar,
#contacto {
    scroll-margin-top: 65px;
}

.transport-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 1.6rem;
}

.transport-accordion {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 240, 203, 0.95);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.transport-accordion[open] {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(92, 141, 109, 0.14);
    border-color: #5c8d6d;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.2s ease;
}

.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-header:hover {
    background-color: rgba(246, 250, 241, 0.6);
}

.accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.accordion-title-wrap h3 {
    margin: 0;
    font-size: 1.6rem;
    color: #3b5a46;
    line-height: 1.2;
}

.accordion-title-wrap h3 small {
    font-size: 0.95rem;
    color: #6d8e75;
    font-weight: normal;
    font-family: 'Nunito', sans-serif;
}

.accordion-chevron {
    width: 12px;
    height: 12px;
    border-right: 2.5px solid #5c8d6d;
    border-bottom: 2.5px solid #5c8d6d;
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    margin-left: 10px;
}

.transport-accordion[open] .accordion-chevron {
    transform: rotate(-135deg);
}

.accordion-content {
    padding: 0 1.4rem 1.4rem 1.4rem;
    animation: fadeInContent 0.35s ease;
}

@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-content p {
    font-size: 1.05rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .accordion-header {
        padding: 0.95rem 1.1rem;
    }
    .accordion-title-wrap {
        gap: 8px;
    }
    .accordion-title-wrap h3 {
        font-size: 1.35rem;
    }
    .accordion-content {
        padding: 0 1.1rem 1.2rem 1.1rem;
    }
    .btn-sturla, .btn-whatsapp {
        width: 100%;
        font-size: 1.3rem;
    }
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.transport-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 240, 203, 0.9);
    border-radius: 14px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.transport-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.transport-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: #e2f0cb;
    color: #3b5a46;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.transport-card h3 {
    font-size: 1.8rem;
    color: #436e52;
    margin-bottom: 0.6rem;
}

.transport-card p {
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.transport-points {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1.4rem;
}

.transport-points li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.transport-points li::before {
    content: "📍";
    position: absolute;
    left: 0;
    font-size: 0.85rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25d366;
    color: #ffffff !important;
    padding: 0.75rem 1.4rem;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: bold;
    transition: background-color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    margin-top: auto;
    text-align: center;
}

.btn-whatsapp:hover {
    background-color: #1ebc59;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}

.btn-sturla {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #5c8d6d;
    color: #ffffff !important;
    padding: 0.75rem 1.4rem;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    font-weight: bold;
    transition: background-color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(92, 141, 109, 0.25);
    margin-top: auto;
    text-align: center;
}

.btn-sturla:hover {
    background-color: #3b5a46;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(92, 141, 109, 0.35);
}

/* ===================================================
   SECCIÓN: MARCAS QUE TRABAJAMOS (CARRUSEL INFINITO)
   =================================================== */
.brands-section {
    padding: 2.2rem 2rem;
    overflow: hidden;
}

.brands-marquee-container {
    width: 100%;
    overflow: hidden;
    margin-top: 1.8rem;
    position: relative;
    padding: 0.6rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.brands-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scrollBrands 32s linear infinite;
    align-items: center;
}

.brands-track:hover {
    animation-play-state: paused;
}

.brand-item {
    background: #ffffff;
    border: 1px solid rgba(226, 240, 203, 0.9);
    border-radius: 14px;
    height: 84px;
    min-width: 160px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    user-select: none;
    flex-shrink: 0;
}

.brand-item:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 22px rgba(92, 141, 109, 0.16);
    border-color: #5c8d6d;
}

.brand-item img {
    max-height: 52px;
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.brand-item:hover img {
    transform: scale(1.08);
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

@media (max-width: 600px) {
    .brands-section {
        padding: 1.8rem 1.2rem;
    }
    .brands-track {
        gap: 1rem;
        animation: scrollBrands 24s linear infinite;
    }
    .brand-item {
        height: 70px;
        min-width: 130px;
        padding: 8px 14px;
    }
    .brand-item img {
        max-height: 42px;
        max-width: 98px;
    }
}

/* ===================================================
   BOTÓN FLOTANTE DE WHATSAPP
   =================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 62px;
    height: 62px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    opacity: 0.6;
    z-index: -1;
    animation: wa-pulse 2s infinite ease-out;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 74px;
    background: #ffffff;
    color: #2e533c;
    padding: 7px 14px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #d0e7be;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================================
   SECCIÓN CONTACTO & ENCARGOS PREVIOS
   =================================================== */
.preorder-banner {
    background: linear-gradient(135deg, #f3faec 0%, #e8f5db 100%);
    border: 2px dashed #b9dfa3;
    border-radius: 16px;
    padding: 1.8rem;
    margin: 1.5rem 0 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.preorder-icon {
    font-size: 3.2rem;
    flex-shrink: 0;
}

.preorder-text h3 {
    font-size: 1.9rem;
    color: #3b5a46;
    margin-bottom: 0.5rem;
}

.preorder-text p {
    font-size: 1.05rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.btn-whatsapp-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    color: #ffffff !important;
    padding: 0.85rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 1.55rem;
    font-weight: bold;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.25s ease;
}

.btn-whatsapp-hero:hover {
    background-color: #1ebc59;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    align-items: start;
}

.contact-info-card {
    background: #ffffff;
    border: 1px solid #e2f0cb;
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.contact-info-card h3 {
    font-size: 2rem;
    color: #436e52;
    margin-bottom: 1rem;
    border-bottom: 2px dashed #e2f0cb;
    padding-bottom: 0.4rem;
}

.contact-info-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1.5rem;
}

.contact-info-list li {
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.contact-info-list li strong {
    color: #3b5a46;
}

.contact-info-list a {
    color: #1ebc59;
    font-weight: bold;
    text-decoration: none;
}

.contact-info-list a:hover {
    text-decoration: underline;
}

.btn-outline {
    background-color: transparent !important;
    color: #5c8d6d !important;
    border: 2px solid #5c8d6d;
}

.btn-outline:hover {
    background-color: #5c8d6d !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .preorder-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.4rem;
    }
    .btn-whatsapp-hero {
        width: 100%;
        justify-content: center;
        font-size: 1.35rem;
    }
    .contact-details-grid {
        grid-template-columns: 1fr;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

/* ===================================================
   SECCIÓN: MOSTRADOR / ESCAPARATE DE ALMACÉN PH
   =================================================== */
.services-container-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.2rem;
    align-items: start;
}

.services-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1.2rem 0;
}

.services-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.services-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #5c8d6d;
    font-weight: 900;
    font-size: 1.1rem;
}

.services-motto {
    font-size: 1.6rem;
    color: #3b5a46;
    margin-top: 1.2rem;
}

.store-showcase-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(92, 141, 109, 0.15);
    border: 1px solid rgba(226, 240, 203, 0.95);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: sticky;
    top: 24px;
}

.store-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(92, 141, 109, 0.22);
}

.store-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 380px;
}

.store-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(59, 90, 70, 0.92);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.store-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
    transition: transform 0.5s ease;
}

.store-showcase-card:hover .store-img {
    transform: scale(1.04);
}

.store-caption {
    padding: 1.1rem 1.4rem;
    background: #fafdf7;
    border-top: 1px solid #edf5e7;
}

.store-location-text {
    font-size: 1.05rem;
    color: #2e4a37;
    margin: 0 0 0.3rem 0;
}

.store-subtext {
    font-size: 0.9rem;
    color: #6d8e75;
    font-style: italic;
    display: block;
}

/* ===================================================
   BENEFICIO CUENTA DNI (BANCO PROVINCIA)
   =================================================== */
.cuentadni-mini-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f4faed 100%);
    border: 1.5px solid #c8e2b5;
    border-radius: 12px;
    padding: 0.75rem 1.1rem;
    margin: 1.2rem 0;
    box-shadow: 0 3px 10px rgba(0, 135, 68, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cuentadni-mini-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 135, 68, 0.12);
}

.cuentadni-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.cuentadni-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cuentadni-tag {
    display: inline-block;
    align-self: flex-start;
    background: #008744;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 9px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.cuentadni-desc {
    font-size: 0.95rem !important;
    color: #333333;
    line-height: 1.35;
    margin: 0 !important;
}

.cuentadni-desc strong {
    color: #006837;
}

/* ===================================================
   SECCIONES DE HISTORIA Y NATURALEZA CON FOTOS
   =================================================== */
.history-content-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.4rem;
    align-items: start;
}

.history-content-grid.reverse-grid {
    grid-template-columns: 0.75fr 1.25fr;
}

.history-points {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0.8rem 0 1.2rem 0;
}

.history-points li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.history-points li::before {
    content: "📸";
    position: absolute;
    left: 0;
    font-size: 0.95rem;
}

.tip-viajero {
    background: #f4faed;
    border-left: 4px solid #5c8d6d;
    padding: 0.95rem 1.25rem;
    border-radius: 0 10px 10px 0;
    margin: 1.3rem 0;
    font-size: 1.02rem;
    color: #3b5a46;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.history-media-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 240, 203, 0.95);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: sticky;
    top: 24px;
}

.history-media-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.history-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

.history-media-card:hover .history-img {
    transform: scale(1.04);
}

.history-caption {
    padding: 0.95rem 1.3rem;
    font-size: 0.95rem;
    color: #3b5a46;
    background: #fafdf7;
    margin: 0;
    line-height: 1.45;
    border-top: 1px solid #edf5e7;
}

/* ===================================================
   GALERÍA: POSTALES DE LA ISLA (HISTORIA.HTML)
   =================================================== */
.postales-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.postal-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(226, 240, 203, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.postal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(92, 141, 109, 0.16);
}

.postal-img-wrap {
    height: 210px;
    position: relative;
    overflow: hidden;
}

.postal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.postal-card:hover .postal-img {
    transform: scale(1.05);
}

.postal-info {
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafdf7;
    text-align: center;
}

.postal-title {
    font-size: 1.5rem;
    color: #3b5a46;
    margin: 0;
    font-weight: 700;
    line-height: 1.25;
}

@media (max-width: 880px) {
    .services-container-grid,
    .history-content-grid,
    .history-content-grid.reverse-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
    
    .history-content-grid.reverse-grid .history-media-card {
        order: 2;
    }
    .history-content-grid.reverse-grid .history-text-col {
        order: 1;
    }
    
    .postales-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
    
    .store-img-wrapper {
        height: 320px;
    }
    
    .history-img-wrapper {
        height: 240px;
    }
}
