/*
CSS Name: Anita y las Flores
Version: 1.0
Author: Franco Miliozzi
Develop by: MF Consulting
URL: https://www.mfconsulting.com.ar
*/

@charset "utf-8";

/* CSS Document */

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

    :root {
      --rose:     #d4467a;      /* fucsia vibrante */
      --rose-lt:  #f28cb1;      /* rosa claro */
      --blush:    #fde8f0;      /* blush suave */
      --cream:    #fff9f5;      /* crema cálido */
      --bark:     #7a3060;      /* ciruela (reemplaza marrón) */
      --sage:     #6ab04c;      /* verde hoja */
      --orange:   #f0883e;      /* naranja tarjeta */
      --yellow:   #f9ca24;      /* amarillo flores */
      --text:     #3d1a35;      /* texto oscuro ciruela */
      --text-lt:  #8a5a7a;      /* texto claro ciruela */
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--cream);
      color: var(--text);
      overflow-x: hidden;
      font-size: 17px;
    }

    /* ─── GRAIN OVERLAY ─── */
    body::before {
      content:'';
      position:fixed; inset:0; z-index:0; pointer-events:none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
      opacity: .5;
    }

    /* ─── NAV ─── */
    nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      display: flex; align-items: center; justify-content: space-between;
      padding: 1rem 3rem;
      background: rgba(253,247,240,0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(200,116,138,.15);
      transition: box-shadow .3s;
    }
    nav.scrolled { box-shadow: 0 4px 24px rgba(200,116,138,.12); }

    .nav-logo img { height: 60px; border-radius: 50%; }

    .nav-links { display: flex; gap: 2rem; list-style: none; }
    .nav-links a {
      text-decoration: none; color: var(--text-lt);
      font-size: .88rem; letter-spacing: .12em; text-transform: uppercase;
      position: relative; transition: color .3s;
    }
    .nav-links a::after {
      content:''; position: absolute; bottom: -4px; left: 0; right: 0;
      height: 1px; background: var(--rose);
      transform: scaleX(0); transform-origin: left; transition: transform .3s;
    }
    .nav-links a:hover { color: var(--rose); }
    .nav-links a:hover::after { transform: scaleX(1); }
    .nav-instagram { display: flex; align-items: center; gap: .4rem; }
    .nav-instagram svg { width: 18px; height: 18px; }

    /* ─── HAMBURGER ─── */
    .hamburger {
      display: none; flex-direction: column; justify-content: center;
      gap: 5px; width: 36px; height: 36px; cursor: pointer;
      background: none; border: none; padding: 4px; z-index: 110;
    }
    .hamburger span {
      display: block; height: 2px; width: 100%;
      background: var(--rose); border-radius: 2px;
      transition: transform .35s ease, opacity .25s ease;
      transform-origin: center;
    }
    .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ─── MOBILE MENU OVERLAY ─── */
    .mobile-menu {
      display: none;
      position: fixed; inset: 0; z-index: 99;
      background: rgba(253,247,240,0.98);
      backdrop-filter: blur(16px);
      flex-direction: column; align-items: center; justify-content: center;
      gap: 2rem;
      opacity: 0; transition: opacity .3s ease;
    }
    .mobile-menu.open { opacity: 1; }
    .mobile-menu a {
      text-decoration: none; color: var(--bark);
      font-family: 'Playfair Display', serif;
      font-size: 2.4rem; font-weight: 400; letter-spacing: .05em;
      transition: color .2s;
    }
    .mobile-menu a:hover { color: var(--rose); }
    .mobile-menu .mobile-rose { width: 80px; margin-bottom: 1rem; border-radius: 50%; }

    /* ─── HERO ─── */
    #inicio {
      min-height: 100vh;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      text-align: center; padding: 8rem 2rem 4rem;
      position: relative;
      background: radial-gradient(ellipse 90% 80% at 50% 0%, #fbd3e9 0%, #fde8c8 50%, var(--cream) 100%);
      overflow: hidden;
    }

    /* Hero split layout */
    .hero-inner {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 3rem; align-items: center;
      max-width: 1000px; width: 100%;
      text-align: left; position: relative; z-index:1;
    }
    .hero-text { display: flex; flex-direction: column; align-items: flex-start; }
    .hero-text .hero-badge { align-self: flex-start; }
    .hero-text .hero-title { text-align: left; }
    .hero-text .hero-sub { text-align: left; margin-left: 0; }

    .hero-photo-wrap {
      position: relative; display: flex; align-items: center; justify-content: center;
    }
    .hero-photo-wrap::before {
      content: '';
      position: absolute; inset: -12px;
      border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
      background: linear-gradient(135deg, var(--rose-lt), var(--orange), var(--yellow));
      opacity: .35; animation: morphBlob 8s ease-in-out infinite;
      z-index: 0;
    }
    @keyframes morphBlob {
      0%,100% { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
      33%      { border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
      66%      { border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%; }
    }
    .hero-photo {
      width: 380px; height: 480px; object-fit: cover; object-position: center top;
      border-radius: 55% 45% 50% 50% / 48% 48% 52% 52%;
      position: relative; z-index: 1;
      box-shadow: 0 20px 60px rgba(212,70,122,.25), 0 4px 20px rgba(0,0,0,.1);
      animation: fadeUp .9s .2s ease both;
    }

    /* Floating flower badges */
    .hero-float {
      position: absolute; font-size: 2rem;
      animation: floatBadge 4s ease-in-out infinite;
      z-index: 2;
    }
    .hero-float:nth-child(1) { top: 8%; right: -10px; animation-delay: 0s; }
    .hero-float:nth-child(2) { bottom: 15%; left: -15px; animation-delay: 1.5s; }
    .hero-float:nth-child(3) { top: 45%; right: -20px; animation-delay: 3s; }
    @keyframes floatBadge {
      0%,100% { transform: translateY(0) rotate(-5deg); }
      50%      { transform: translateY(-12px) rotate(5deg); }
    }

    @media (max-width: 768px) {
      .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
      .hero-text { align-items: center; }
      .hero-text .hero-title, .hero-text .hero-sub { text-align: center; }
      .hero-photo { width: 240px; height: 300px; }
    }

    /* ─── FLORES DE FONDO HERO ─── */
    .hero-flower {
      position: absolute; z-index: 0; pointer-events: none;
      opacity: .18;
      animation: heroFloat 7s ease-in-out infinite;
    }
    .hero-flower svg { display: block; }

    /* Posiciones y tamaños de cada flor */
    .hf-1  { width:130px; top: -30px;  left: -40px;  animation-delay:0s;    animation-duration:8s; }
    .hf-2  { width:110px; top:  10%;   right:-30px;  animation-delay:1.2s;  animation-duration:9s; }
    .hf-3  { width: 90px; top:  40%;   left: -20px;  animation-delay:2.5s;  animation-duration:7s; }
    .hf-4  { width:120px; bottom:-20px;left:  5%;    animation-delay:0.8s;  animation-duration:10s;}
    .hf-5  { width: 70px; bottom: 15%; right: 8%;    animation-delay:3.5s;  animation-duration:6s; }
    .hf-6  { width: 95px; top:  60%;   right:-10px;  animation-delay:1.8s;  animation-duration:8s; }
    .hf-7  { width:150px; top:  -40px; right: 20%;   animation-delay:4s;    animation-duration:11s;}
    .hf-8  { width: 65px; bottom:  8%; left: 30%;    animation-delay:2s;    animation-duration:7s; }
    .hf-9  { width: 80px; top:  25%;   right:  3%;   animation-delay:1s;    animation-duration:9s; }
    .hf-10 { width: 70px; bottom: 30%; left:  2%;    animation-delay:3s;    animation-duration:8s; }
    .hf-11 { width: 95px; top:  70%;   left: 12%;    animation-delay:0.5s;  animation-duration:10s;}
    .hf-12 { width:160px; bottom:-30px;right: -20px; animation-delay:2.8s;  animation-duration:12s;}
    .hf-13 { width: 55px; top:  15%;   left: 10%;    animation-delay:4.5s;  animation-duration:6s; }
    .hf-14 { width: 85px; top:  50%;   right: 15%;   animation-delay:1.5s;  animation-duration:9s; }
    .hf-15 { width: 75px; bottom: 22%; right: 28%;   animation-delay:3.8s;  animation-duration:7s; }
    .hf-16 { width: 55px; top:   8%;   left: 40%;    animation-delay:5s;    animation-duration:8s; }

    @keyframes heroFloat {
      0%,100% { transform: translateY(0px)   rotate(0deg);   }
      25%      { transform: translateY(-14px) rotate(4deg);   }
      50%      { transform: translateY(-8px)  rotate(-3deg);  }
      75%      { transform: translateY(-18px) rotate(5deg);   }
    }

    .hero-badge {
      display: inline-block;
      font-size: .85rem; letter-spacing: .2em; color: var(--rose);
      text-transform: uppercase; margin-bottom: 1.5rem;
      border: 1px solid var(--rose-lt); padding: .4rem 1.2rem; border-radius: 50px;
      animation: fadeUp .8s ease both;
    }
    .hero-logo {
      margin-bottom: 2rem;
      animation: fadeUp .8s .15s ease both;
    }
	.nav-logo { text-decoration: none; }
	.nav-logo p { font-family: 'Playfair Display', serif;
				  color: var(--bark);
				  font-weight: bold;
				  font-size: 1.8rem; } 
	.nav-logo p span { color: var(--rose); } 
    .hero-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(3rem, 8vw, 6rem);
      font-weight: 500; line-height: 1.1;
      color: var(--bark);
      animation: fadeUp .8s .25s ease both;
    }
    .hero-title em { color: var(--rose); font-style: italic; font-weight: 400; }
    .hero-sub {
      font-size: 1.1rem; line-height: 1.85; color: var(--text-lt);
      max-width: 540px; margin: 1.5rem auto 2.5rem;
      animation: fadeUp .8s .35s ease both;
    }
    .btn {
      display: inline-block; text-decoration: none;
      padding: .9rem 2.5rem;
      background: var(--rose); color: #fff;
      font-size: .9rem; letter-spacing: .14em; text-transform: uppercase;
      border-radius: 50px; transition: background .3s, transform .2s, box-shadow .3s;
      box-shadow: 0 6px 24px rgba(200,116,138,.35);
      animation: fadeUp .8s .45s ease both;
    }
    .btn:hover { background: var(--rose); filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(212,70,122,.35); }

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

    /* ─── SCROLL REVEAL ─── */
    .reveal {
      opacity: 0;
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.from-bottom  { transform: translateY(36px); }
    .reveal.from-left    { transform: translateX(-40px); }
    .reveal.from-right   { transform: translateX(40px); }
    .reveal.scale-in     { transform: scale(0.92); }
    .reveal.visible {
      opacity: 1;
      transform: translateY(0) translateX(0) scale(1);
    }

    /* delay helpers */
    .delay-1 { transition-delay: 0.1s; }
    .delay-2 { transition-delay: 0.2s; }
    .delay-3 { transition-delay: 0.3s; }
    .delay-4 { transition-delay: 0.4s; }
    .delay-5 { transition-delay: 0.5s; }
    .delay-6 { transition-delay: 0.6s; }

    /* ─── SECTION BASE ─── */
    section { padding: 6rem 2rem; position: relative; }
    .section-inner { max-width: 1100px; margin: 0 auto; }
    .section-label {
      font-size: .82rem; letter-spacing: .25em; text-transform: uppercase;
      color: var(--rose); margin-bottom: .6rem;
    }
    .section-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 500;
      color: var(--bark); margin-bottom: 1.2rem;
    }
    .divider {
      width: 50px; height: 1px; background: var(--rose-lt);
      margin: 1rem 0 2rem;
    }

    /* ─── EVENTOS ─── */
    #eventos { background: var(--blush); }

    .cards {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.5rem; margin-top: 2.5rem;
    }
    .card {
      background: white; border-radius: 16px;
      padding: 2rem 1.8rem;
      box-shadow: 0 4px 24px rgba(0,0,0,.05);
      border-top: 3px solid transparent;
      transition: transform .3s, box-shadow .3s, border-color .3s;
      position: relative; overflow: hidden;
	  text-align: center;
    }
    .card::before {
      content:''; position:absolute; top:0; left:0; right:0; bottom:0;
      background: linear-gradient(135deg, rgba(200,116,138,.05) 0%, transparent 60%);
      opacity:0; transition: opacity .3s;
    }
    .card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(200,116,138,.15); border-color: var(--rose-lt); }
    .card:hover::before { opacity:1; }
    .card-icon { font-size: 3rem; margin-bottom: 1rem; }
    .card-title {
      font-family: 'Playfair Display', serif;
      font-size: 1.45rem; font-weight: 500; color: var(--bark);
      margin-bottom: .6rem;
    }
    .card p { font-size: 1rem; color: var(--text-lt); line-height: 1.75; }

    /* ─── BODAS ─── */
    #bodas {
      background: linear-gradient(to bottom right, var(--cream), #fce8ed);
    }
    .bodas-grid {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 4rem; align-items: center; margin-top: 2rem;
    }
    .bodas-text p { font-size: 1.05rem; line-height: 1.85; color: var(--text-lt); margin-bottom: 1.5rem; }
    .bodas-items { display: flex; flex-direction: column; gap: 1rem; }
    .bodas-item {
      display: flex; align-items: center; gap: 1rem;
      background: white; border-radius: 12px; padding: 1rem 1.5rem;
      box-shadow: 0 2px 12px rgba(0,0,0,.04);
      font-size: 1rem; color: var(--text-lt);
      transition: transform .2s;
    }
    .bodas-item:hover { transform: translateX(6px); }
    .bodas-item span:first-child { font-size: 2.6rem; }
    .bodas-item strong { display: block; color: var(--bark); font-size: 1.05rem; margin-bottom: .1rem; }

    /* ─── RAMOS ─── */
    #ramos { background: var(--blush); }
    .ramos-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.2rem; margin-top: 2.5rem;
    }
    .ramo-card {
      background: white; border-radius: 14px; padding: 2.5rem 1.5rem;
      text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,.05);
      transition: transform .3s, box-shadow .3s;
    }
    .ramo-card:hover { transform: translateY(-5px); box-shadow: 0 10px 36px rgba(200,116,138,.15); }
        .ramo-card .icon { font-size: 3.5rem; margin-bottom: 1rem; }
    .ramo-card .icon svg { width: 64px; height: 64px; display: block; margin: 0 auto; }
    .ramo-card h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.35rem; color: var(--bark); font-weight: 500; margin-bottom: .5rem;
    }
    .ramo-card p { font-size: 1rem; color: var(--text-lt); line-height: 1.75; }

    /* ─── CONTACTO ─── */
    #contacto {
      background: linear-gradient(135deg, #c0356a 0%, #7a3060 60%, #3d1a35 100%);
      color: white;
    }
    #contacto .section-label { color: var(--rose-lt); }
    #contacto .section-title { color: white; }
    #contacto .divider { background: rgba(255,255,255,.3); }

    .contacto-grid {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 4rem; align-items: center;
    }
    .contacto-intro { font-size: 1.05rem; line-height: 1.85; opacity: .85; margin-bottom: 2rem; }

    .contact-items { display: flex; flex-direction: column; gap: 1.2rem; }
    .contact-item {
      display: flex; align-items: center; gap: 1.2rem;
      background: rgba(255,255,255,.08); border-radius: 12px;
      padding: 1rem 1.5rem; border: 1px solid rgba(255,255,255,.1);
      transition: background .3s;
    }
    .contact-item:hover { background: rgba(255,255,255,.14); }
    .contact-item .ci-icon { font-size: 0; width: 48px; height: 48px; display:flex; align-items:center; justify-content:center; }
    .contact-item .ci-icon svg { width: 36px; height: 36px; }
    .contact-item .ci-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .65; margin-bottom: .2rem; }
    .contact-item .ci-value { font-size: 1.05rem; }
    .contact-item a { color: inherit; text-decoration: none; }
    .contact-item a:hover { color: var(--rose-lt); }

    /* decorative circle in contact */
    .contact-deco {
      display: flex; align-items: center; justify-content: center;
      position: relative;
    }
    .contact-deco .ring {
      width: 320px; height: 320px; border-radius: 50%;
      border: 3px solid rgba(255,255,255,.3);
      display: flex; align-items: center; justify-content: center;
      position: relative; overflow: hidden;
      box-shadow: 0 12px 48px rgba(0,0,0,.25);
    }
    .contact-deco .ring::before {
      content: none;
    }
    .contact-deco img {
      width: 130px; 
    }

    /* ─── FOOTER ─── */
    footer {
      background: #2a0d22; color: rgba(255,255,255,.4);
      text-align: center; padding: 2rem; font-size: .9rem; letter-spacing: .06em;
    }
    footer span { color: var(--rose-lt); }

    /* ─── MINI GALERÍAS POR SECCIÓN ─── */
    .section-gallery {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-top: 2.5rem;
    }
    .section-gallery.eight-cols {
      grid-template-columns: repeat(8, 1fr);
    }

    .sg-item {
      overflow: hidden; border-radius: 12px;
      position: relative; cursor: pointer;
      aspect-ratio: 3/4;
    }
    .sg-item img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      transition: transform .5s ease, filter .4s ease;
    }
    .sg-item:hover img { transform: scale(1.07); filter: brightness(.84); }

    .sg-overlay {
      position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(90,40,20,.6) 0%, transparent 55%);
      opacity: 0; transition: opacity .35s;
      display: flex; align-items: flex-end; padding: 1rem .9rem;
    }
    .sg-item:hover .sg-overlay { opacity: 1; }
    .sg-overlay span {
      color: #fff; font-family: 'Playfair Display', serif;
      font-style: italic; font-size: .95rem;
    }

    /* Lightbox */
    .lightbox {
      display: none; position: fixed; inset: 0; z-index: 200;
      background: rgba(20,10,6,.95); backdrop-filter: blur(10px);
      align-items: center; justify-content: center;
    }
    .lightbox.open { display: flex; }

    .lightbox-img-wrap {
      display: flex; align-items: center; justify-content: center;
      width: min(90vw, 1100px); height: min(88vh, 820px);
      position: relative;
    }
    .lightbox img {
      width: 100%; height: 100%;
      border-radius: 14px; object-fit: cover;
      box-shadow: 0 24px 80px rgba(0,0,0,.7);
      display: block;
      transition: opacity .22s ease, transform .22s ease;
    }
    .lightbox img.lb-fade { opacity: 0; transform: scale(.96); }

    /* ✕ arriba a la derecha del overlay */
    .lightbox-close {
      position: fixed; top: 1.2rem; right: 1.5rem;
      background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25);
      color: #fff; font-size: 1.4rem; width: 44px; height: 44px;
      border-radius: 50%; cursor: pointer; display: flex; align-items: center;
      justify-content: center; transition: background .2s; z-index: 10;
    }
    .lightbox-close:hover { background: rgba(255,255,255,.28); }

    /* Flechas fijas a los costados del overlay */
    .lb-arrow {
      position: fixed; top: 50%; transform: translateY(-50%);
      background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
      color: #fff; font-size: 2rem; width: 56px; height: 56px;
      border-radius: 50%; cursor: pointer; display: flex; align-items: center;
      justify-content: center; transition: background .2s, transform .25s;
      z-index: 10; user-select: none; line-height: 1;
    }
    .lb-arrow:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.08); }
    .lb-prev { left: 1.5rem; }
    .lb-next { right: 1.5rem; }

    /* Footer: caption + dots */
    .lightbox-footer {
      position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
      display: flex; flex-direction: column; align-items: center; gap: .55rem;
      z-index: 10;
    }
    .lightbox-caption {
      color: rgba(255,255,255,.75); font-family: 'Playfair Display', serif;
      font-style: italic; font-size: 1.05rem; white-space: nowrap;
      text-shadow: 0 1px 6px rgba(0,0,0,.5);
    }
    .lb-dots { display: flex; gap: 8px; align-items: center; }
    .lb-dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: rgba(255,255,255,.3); cursor: pointer;
      transition: background .2s, transform .2s;
    }
    .lb-dot.active { background: var(--rose-lt); transform: scale(1.5); }

    @media (max-width: 600px) {
      .lb-prev { left: .6rem; }
      .lb-next { right: .6rem; }
      .lb-arrow { width: 44px; height: 44px; font-size: 1.5rem; }
      .lightbox-img-wrap { width: 92vw; height: 70vh; }
    }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 768px) {
      nav { padding: .8rem 1.4rem; }
      .nav-links { display: none; }
      .hamburger { display: flex; }

      #inicio { padding: 7rem 1.5rem 3rem; }
      .hero-logo { width: 110px; }

      section { padding: 4rem 1.4rem; }

      .cards { grid-template-columns: 1fr; gap: 1rem; }

      .bodas-grid { grid-template-columns: 1fr; gap: 2rem; }
      .bodas-text .btn { display: block; text-align: center; }

      .ramos-grid { grid-template-columns: 1fr; gap: 1rem; }

      .section-gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
      .section-gallery.eight-cols { grid-template-columns: repeat(2, 1fr); }

      .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
      .contact-deco { display: none; }
    }