/* CSS Variables & Theme */
:root {
    /* Color Palette */
    --clr-offwhite: #FAF9F6;
    --clr-sand: #F5EBE0;
    --clr-coral: #E07A5F;
    --clr-coral-light: #F8EDEB;
    --clr-sunset: #F4A261;
    --clr-gold: #E9C46A;
    --clr-ocean: #2A9D8F;
    --clr-dark: #264653;
    --clr-light: #FFFFFF;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    color: var(--clr-dark);
    background-color: var(--clr-offwhite);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .highlight-serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-light { color: var(--clr-light); }

.padding-section {
    padding: var(--space-xl) 0;
}

.screen-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bg-offwhite { background-color: var(--clr-offwhite); }
.bg-sand { background-color: var(--clr-sand); }
.bg-coral-light { background-color: var(--clr-coral-light); }
.bg-sunset { background-color: var(--clr-sunset); }
.bg-dark { background-color: var(--clr-dark); }

.mt-2 { margin-top: var(--space-md); }

/* Buttons */
.btn-primary {
    background-color: var(--clr-coral);
    color: var(--clr-light);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--clr-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-ocean);
    border: 1px solid var(--clr-ocean);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--clr-ocean);
    color: var(--clr-light);
}

/* Hero Section */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(38, 70, 83, 0.3), rgba(38, 70, 83, 0.7));
}

.overlay.dark {
    background: rgba(38, 70, 83, 0.5);
}

.hero-content {
    text-align: center;
    color: var(--clr-light);
    padding: 0 var(--space-md);
    z-index: 1;
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1;
    margin-bottom: var(--space-sm);
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
}

/* Intro Section */
.reveal-text-container {
    max-width: 800px;
}

.reveal-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.4;
    margin-bottom: var(--space-md);
    color: var(--clr-dark);
    opacity: 0.2; /* For GSAP to animate */
}

.reveal-text.highlight-serif {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--clr-coral);
    margin: var(--space-lg) 0;
}

.reveal-text.small-text {
    font-size: 1.2rem;
    font-family: var(--font-sans);
    opacity: 0;
}

/* Loves Section */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-lg);
    color: var(--clr-dark);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.love-card {
    background: var(--clr-light);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(40px);
}

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

.love-card .emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.love-card h3 {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--clr-dark);
}

/* Timeline Section */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--clr-sand);
    z-index: 1;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
    opacity: 0;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-dot {
    width: 60px;
    height: 60px;
    background-color: var(--clr-light);
    border: 3px solid var(--clr-coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    width: 45%;
    background: var(--clr-light);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--clr-coral);
    margin-bottom: 0.5rem;
}

.timeline-content img {
    border-radius: var(--radius-md);
    margin-top: 1rem;
    transition: var(--transition);
}

.timeline-content img:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    .timeline-item, .timeline-item:nth-child(even) {
        flex-direction: row;
        justify-content: flex-start;
        padding-left: 80px;
    }
    .timeline-dot {
        left: 30px;
    }
    .timeline-content {
        width: 100%;
    }
}

/* Messages Section */
.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

.message-card {
    background: var(--clr-light);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--space-sm);
    border: 4px solid var(--clr-offwhite);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.short-msg {
    margin: 1rem 0;
    font-style: italic;
    color: #666;
}

/* Modals (Dialog) */
dialog {
    margin: auto;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    padding: 0;
    background: var(--clr-light);
}

dialog::backdrop {
    background: rgba(38, 70, 83, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    padding: var(--space-md);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--clr-dark);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.close-modal:hover {
    opacity: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.modal-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

/* Video Section */
.video-frame {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    max-width: 900px;
    margin: 0 auto;
}

.player-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Numbers Section */
.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.counter-value {
    font-family: var(--font-serif);
    font-size: 4rem;
    color: var(--clr-ocean);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

/* Thoughts Carousel */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 var(--space-md);
    text-align: center;
}

.carousel-slide blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--clr-light);
    font-style: italic;
    line-height: 1.4;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: var(--space-md);
}

.nav-btn {
    color: var(--clr-light);
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-btn:hover {
    opacity: 1;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--clr-light);
}

/* Gifts Section */
.subtitle-text {
    font-size: 1.2rem;
    margin-bottom: var(--space-lg);
    color: #666;
}

.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.gift-box {
    background: var(--clr-gold);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-md);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}

.gift-box:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.gift-lid {
    font-size: 4rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
    z-index: 2;
}

.gift-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--clr-dark);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.gift-box.opened .gift-lid {
    transform: translate(-50%, -150%) rotate(-10deg);
    opacity: 0;
}

.gift-box.opened .gift-content {
    opacity: 1;
}

/* Final Section */
.final-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.final-content {
    color: var(--clr-light);
    z-index: 1;
    padding: var(--space-md);
}

.final-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: var(--space-md);
}

.final-text p {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
    opacity: 0; /* Animated with GSAP */
}

.heart-pulse {
    font-size: 3rem;
    margin: var(--space-md) 0;
    display: inline-block;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.signature {
    margin-top: var(--space-xl);
    font-style: italic;
    font-size: 1.2rem;
    opacity: 0;
}

/* ===========================================================
   VÍDEO — Teaser en la home
   =========================================================== */
.video-intro {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 300;
    max-width: 620px;
    margin: 0 auto var(--space-lg);
    opacity: 0.92;
    line-height: 1.75;
}

.video-teaser {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: inherit;
}

.video-teaser-poster {
    position: relative;
    display: block;
    width: min(280px, 70vw);
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    transition: var(--transition);
}

.video-teaser-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.video-teaser:hover .video-teaser-poster,
.video-teaser:focus-visible .video-teaser-poster {
    transform: translateY(-6px);
    box-shadow: 0 35px 75px rgba(0, 0, 0, 0.55);
}

.video-teaser:hover .video-teaser-poster img {
    transform: scale(1.05);
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.play-badge::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 5px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent var(--clr-coral);
}

.video-teaser:hover .play-badge {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.08);
}

.video-teaser-btn {
    text-decoration: none;
}

/* ===========================================================
   VÍDEO — Página dedicada (video.html)
   =========================================================== */
body.video-page {
    background: radial-gradient(125% 90% at 50% 0%, #2c5364 0%, var(--clr-dark) 55%, #14232b 100%);
    color: var(--clr-light);
    min-height: 100vh;
}

.back-link {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 10;
    color: var(--clr-light);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

.video-stage {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(4rem, 11vh, 7rem) var(--space-md) var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-stage-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 7vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.video-stage-sub {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: var(--space-lg);
}

.vertical-player {
    width: min(380px, 86vw);
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    background: #000;
}

.vertical-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mama-message {
    margin-top: var(--space-xl);
    width: min(420px, 90vw);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.mama-message h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.mama-message p {
    opacity: 0.85;
    font-size: 0.98rem;
    margin-bottom: var(--space-md);
}

.mama-message audio {
    width: 100%;
}

.video-stage-foot {
    margin-top: var(--space-xl);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1rem;
    opacity: 0.6;
}

/* ===========================================================
   REGALOS — Tarjetas en la home
   =========================================================== */
.regalos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: var(--space-md);
    text-align: left;
}

.regalo-card {
    background: var(--clr-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.regalo-foto {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--clr-sand), var(--clr-coral-light));
    overflow: hidden;
}

.regalo-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.regalo-card:hover .regalo-foto img { transform: scale(1.06); }

.regalo-cuerpo {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.regalo-num {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-coral);
    font-weight: 600;
}

.regalo-cuerpo h3 {
    font-size: 1.6rem;
    margin: 0.3rem 0 0.6rem;
    color: var(--clr-dark);
}

.regalo-cuerpo p {
    color: #5a5a5a;
    font-size: 0.97rem;
    line-height: 1.65;
}

.regalo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.regalo-btn {
    margin-top: var(--space-md);
    align-self: flex-start;
}

.regalo-card--destacado {
    box-shadow: 0 20px 45px rgba(42, 157, 143, 0.28);
    outline: 2px solid rgba(46, 196, 182, 0.4);
}

.regalo-foto--formentera {
    background: linear-gradient(180deg, #cdeef0 0%, #6fd0c9 45%, #1ca7a0 100%);
    display: grid;
    place-items: center;
}

.regalo-emoji {
    font-size: 3.2rem;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.regalo-sello {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--clr-ocean);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
}

/* ===========================================================
   PÁGINA FORMENTERA (formentera.html)
   =========================================================== */
.formentera-page { background: var(--clr-offwhite); color: var(--clr-dark); }

.formentera-page .back-link {
    background: rgba(11, 110, 122, 0.85);
    color: #fff;
}
.formentera-page .back-link:hover { background: rgba(11, 110, 122, 1); }

.fmt-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.fmt-scene {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #eaf7f6 0%, #bfe9e6 32%, #7ed7d0 58%, #2ec4b6 100%);
}

.fmt-sun {
    position: absolute;
    top: 15%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translateX(-50%);
    background: radial-gradient(circle, #fff5db 0%, #ffe3a3 55%, rgba(255, 227, 163, 0) 72%);
    border-radius: 50%;
    box-shadow: 0 0 90px 36px rgba(255, 224, 150, 0.55);
}

.fmt-sand {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 66px;
    background: linear-gradient(180deg, #f3e7d3, #e9dcc4);
}

.fmt-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 56px;
    width: 100%;
    height: 70px;
}

.fmt-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 var(--space-md);
}

.fmt-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0b6e7a;
    margin-bottom: 0.6rem;
}

.fmt-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 12vw, 7rem);
    line-height: 1;
    color: #fff;
    text-shadow: 0 6px 30px rgba(11, 110, 122, 0.45);
}

.fmt-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 300;
    margin-top: 0.5rem;
    color: #0c4a4a;
}

.fmt-main {
    max-width: 820px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.fmt-section { margin-bottom: var(--space-xl); }

.fmt-reveal { text-align: center; }

.fmt-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    line-height: 1.4;
    color: var(--clr-dark);
    margin-bottom: var(--space-md);
}

.fmt-reveal p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #4a4a4a;
    max-width: 640px;
    margin: 0 auto var(--space-sm);
}

.fmt-reveal strong { color: var(--clr-ocean); }

.fmt-h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--clr-dark);
}

.fmt-dias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
}

.fmt-dia {
    background: var(--clr-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--clr-ocean);
    transition: var(--transition);
}

.fmt-dia:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.fmt-dia-num { font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--clr-ocean); font-weight: 600; }
.fmt-dia-emoji { display: block; font-size: 2.2rem; margin: 0.4rem 0; }
.fmt-dia h3 { font-size: 1.3rem; margin-bottom: 0.4rem; color: var(--clr-dark); }
.fmt-dia p { font-size: 0.95rem; color: #5a5a5a; line-height: 1.6; }

.fmt-miyagui {
    text-align: center;
    background: var(--clr-coral-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
}

.fmt-miyagui p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #4a4a4a;
    max-width: 640px;
    margin: 0 auto var(--space-sm);
}

.fmt-miyagui-cierre {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--clr-coral);
    font-size: 1.2rem !important;
}

.pareja-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.pareja-foto {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #bfe9e6, #7ed7d0);
}

.pareja-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pareja-foto.sin-foto img { display: none; }
.pareja-foto.sin-foto::after {
    content: "📷  Aquí irá vuestra foto";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #0b6e7a;
    font-size: 0.95rem;
    font-weight: 500;
}

.fmt-cierre { text-align: center; }

.fmt-cierre-text {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3.5vw, 1.9rem);
    line-height: 1.5;
    color: var(--clr-dark);
    margin-bottom: var(--space-lg);
}

/* ===========================================================
   FORMENTERA — Hero con foto real + galería (mejoras)
   =========================================================== */
.fmt-hero { min-height: 88vh; }

.fmt-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.fmt-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(11,78,90,0.34) 0%, rgba(11,78,90,0.10) 38%, rgba(28,167,160,0.42) 100%);
}

.fmt-hero .fmt-wave { z-index: 2; bottom: -1px; }
.fmt-hero-content { z-index: 3; color: #fff; }

/* El texto va sobre foto: lo aclaramos y le damos sombra */
.fmt-eyebrow { color: #eafaf8; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
.fmt-subtitle { color: #f3fbfa; text-shadow: 0 2px 14px rgba(0,0,0,0.30); }
.fmt-title { text-shadow: 0 8px 34px rgba(0,0,0,0.40); }

/* Galería de Formentera */
.fmt-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.fmt-gimg {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

.fmt-gimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.fmt-gimg:hover img { transform: scale(1.07); }

.fmt-gimg figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(11,78,90,0.78) 100%);
}

.fmt-credits {
    text-align: center;
    font-size: 0.78rem;
    color: #9aa5a3;
    margin-top: var(--space-lg);
}

/* ===========================================================
   TU FAMILIA (home)
   =========================================================== */
.familia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.familia-foto {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 5;
    background: #e8e0d4;
}

.familia-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.familia-foto:hover img { transform: scale(1.06); }

.familia-frase {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--clr-dark);
    margin-top: var(--space-lg);
}

/* ===== Foto única de la pareja (Formentera) ===== */
.pareja-solo {
    margin: var(--space-lg) auto 0;
    max-width: 540px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

.pareja-solo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
