/* =============================================
   MARCUEFLOR — Floristería en Madrid
   ============================================= */

:root {
  --green-dark:   #1e4a1e;
  --green:        #2e6b2e;
  --green-mid:    #4a9b4a;
  --green-sign:   #8db87a;
  --green-light:  #c8e6b8;
  --green-pale:   #eef7e8;
  --green-bg:     #f4f9f1;
  --text:         #1a2e1a;
  --text-mid:     #4a5e4a;
  --text-light:   #7a927a;
  --white:        #ffffff;
  --radius:       4px;
  --shadow-sm:    0 1px 6px rgba(30,74,30,.07);
  --shadow:       0 4px 24px rgba(30,74,30,.10);
  --shadow-lg:    0 12px 48px rgba(30,74,30,.16);
  --transition:   .3s ease;
  --font-serif:   'Cinzel', Georgia, serif;
  --font-body:    'EB Garamond', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.75; font-size: 1.05rem; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 2rem;
  font-family: var(--font-serif); font-size: .72rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.btn--primary  { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.btn--primary:hover { background: var(--green); border-color: var(--green); }
.btn--ghost    { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover  { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--light    { background: transparent; color: var(--white); border-color: var(--green-sign); }
.btn--light:hover  { background: var(--green-sign); color: var(--green-dark); }
.btn--lg { padding: .9rem 2.5rem; font-size: .78rem; }


/* =============================================
   NAV
   ============================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30,74,30,.08);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.nav { display: flex; align-items: center; gap: 2rem; padding: 1.1rem 0; }

.nav__logo {
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
  color: var(--green-dark); letter-spacing: .14em; text-transform: uppercase;
  flex-shrink: 0;
}
.nav__menu { display: flex; margin-left: auto; }
.nav__link {
  padding: .4rem 1rem;
  font-family: var(--font-sans); font-size: .75rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mid); transition: color var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--green-dark); }
.nav__cta { margin-left: 1.5rem; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem; margin-left: auto;
}
.nav__burger span {
  display: block; width: 22px; height: 1.5px; background: var(--green-dark);
  transition: var(--transition);
}


/* =============================================
   SECCIONES — compartido
   ============================================= */
.section { padding: 6rem 0; }
.section--dark { background: var(--green-dark); }

.section__header { text-align: center; margin-bottom: 4rem; }
.section__eyebrow {
  font-family: var(--font-sans); font-size: .7rem; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase; color: var(--green-mid);
  margin-bottom: 1rem;
}
.section__eyebrow--light { color: var(--green-sign); }

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--green-dark); line-height: 1.15;
  font-weight: 600; letter-spacing: .04em;
}
.section__title--light { color: var(--white); }
.section__desc { color: var(--text-mid); max-width: 520px; margin: 1.2rem auto 0; font-size: 1rem; }


/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100svh;
  position: relative; overflow: hidden;
  background: var(--green-dark);
  padding: 8rem 1.25rem 6rem;
}

/* Gradientes de fondo animados */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 40%, rgba(141,184,122,.10) 0%, transparent 55%),
    radial-gradient(ellipse 70% 90% at 85% 60%, rgba(30,74,30,.6) 0%, transparent 55%);
  animation: hero-glow 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hero-glow {
  from { opacity: .7; }
  to   { opacity: 1; }
}

/* Marco decorativo interior */
.hero::after {
  content: '';
  position: absolute;
  top: 3rem; left: 3rem; right: 3rem; bottom: 3rem;
  border: 1px solid rgba(255,255,255,.055);
  pointer-events: none;
}

/* ---- Hojas CSS animadas ---- */
.hero__deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.hero__leaf {
  position: absolute;
  background: rgba(141,184,122,.1);
  border-radius: 100% 0 100% 0;
  animation: leaf-sway 7s ease-in-out infinite;
}
.hero__leaf--1 { width: 120px; height: 200px; top: 8%;  left: 4%;  transform: rotate(-30deg); animation-duration: 8s; }
.hero__leaf--2 { width: 80px;  height: 140px; top: 55%; left: 7%;  transform: rotate(20deg);  animation-duration: 11s; animation-delay: -2s; }
.hero__leaf--3 { width: 150px; height: 240px; top: 5%;  right: 3%; transform: rotate(130deg); animation-duration: 9s;  animation-delay: -4s; }
.hero__leaf--4 { width: 90px;  height: 160px; bottom: 12%; right: 8%; transform: rotate(160deg); animation-duration: 12s; animation-delay: -1s; }

@keyframes leaf-sway {
  0%,100% { transform-origin: bottom center; transform: rotate(var(--r, -30deg)) scale(1); }
  50%      { transform: rotate(calc(var(--r, -30deg) + 6deg)) scale(1.04); }
}
.hero__leaf--1 { --r: -30deg; }
.hero__leaf--2 { --r: 20deg; }
.hero__leaf--3 { --r: 130deg; }
.hero__leaf--4 { --r: 160deg; }

/* Tallos delgados */
.hero__stem {
  position: absolute; background: rgba(141,184,122,.08);
  border-radius: 99px;
}
.hero__stem--1 { width: 2px; height: 180px; top: 10%; left: 10%; transform: rotate(15deg); animation: stem-grow 6s ease-in-out infinite; }
.hero__stem--2 { width: 2px; height: 140px; bottom: 15%; right: 12%; transform: rotate(-20deg); animation: stem-grow 7s ease-in-out infinite; animation-delay: -3s; }
@keyframes stem-grow {
  0%,100% { opacity: .5; transform: rotate(var(--sr, 15deg)) scaleY(1); }
  50%      { opacity: 1;  transform: rotate(var(--sr, 15deg)) scaleY(1.08); }
}
.hero__stem--1 { --sr: 15deg; }
.hero__stem--2 { --sr: -20deg; }

/* Orbes de luz */
.hero__orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(141,184,122,.12), transparent 70%);
  animation: orb-pulse 10s ease-in-out infinite;
}
.hero__orb--1 { width: 400px; height: 400px; top: -100px; left: -100px; animation-delay: 0s; }
.hero__orb--2 { width: 300px; height: 300px; bottom: -80px; right: -80px; animation-delay: -5s; }
@keyframes orb-pulse {
  0%,100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.15); opacity: 1; }
}

/* ---- Contenido del hero ---- */
.hero__content {
  position: relative; z-index: 1;
  text-align: center;
}

.hero__eyebrow {
  font-family: var(--font-sans); font-size: .7rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--green-sign);
  margin-bottom: 2rem;
  animation: fade-up .8s ease both;
}

.hero__title {
  display: block;
  width: 100%;
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  font-weight: 600; color: var(--white);
  line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
  animation: fade-up .8s .15s ease both;
}

.hero__rule {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  margin-bottom: 2rem;
  animation: fade-up .8s .25s ease both;
}
.hero__rule span {
  display: block; width: 60px; height: 1px; background: rgba(141,184,122,.5);
}
.hero__rule-diamond {
  width: 5px !important; height: 5px !important;
  background: var(--green-sign) !important;
  transform: rotate(45deg);
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic; color: rgba(255,255,255,.65);
  line-height: 1.7; margin-bottom: 2.5rem;
  animation: fade-up .8s .35s ease both;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  margin-bottom: 3rem;
  animation: fade-up .8s .45s ease both;
}

.hero__meta {
  font-family: var(--font-sans); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  animation: fade-up .8s .55s ease both;
}

/* Flecha scroll animada */
.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  animation: scroll-anim 2.5s ease-in-out infinite;
  z-index: 1;
}
.hero__scroll-line {
  display: block; width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(141,184,122,.5));
}
@keyframes scroll-anim {
  0%,100% { opacity: .5; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;  transform: translateX(-50%) translateY(10px); }
}

/* Animación de entrada */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =============================================
   SERVICIOS
   ============================================= */
.servicios__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(30,74,30,.12);
  border-left: 1px solid rgba(30,74,30,.12);
}
.card--service {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(30,74,30,.12);
  border-bottom: 1px solid rgba(30,74,30,.12);
  position: relative; overflow: hidden;
  transition: background var(--transition);
}
.card--service::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: var(--green-sign);
  transition: width .4s ease;
}
.card--service:hover { background: var(--green-pale); }
.card--service:hover::before { width: 100%; }

.card__num {
  display: block; font-family: var(--font-serif); font-size: .65rem; font-weight: 600;
  letter-spacing: .18em; color: var(--green-sign); margin-bottom: 1.2rem;
}
.card__title {
  font-family: var(--font-serif); font-size: .9rem; font-weight: 600;
  letter-spacing: .08em; color: var(--green-dark); margin-bottom: .8rem; text-transform: uppercase;
}
.card__text { color: var(--text-mid); font-size: .95rem; line-height: 1.7; }


/* =============================================
   NOSOTROS
   ============================================= */
.nosotros__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
}
.nosotros__text .section__title { margin-bottom: 1.5rem; }
.nosotros__text p { color: rgba(255,255,255,.65); margin-bottom: 2rem; }

.check__list { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: .75rem; }
.check__list li {
  color: rgba(255,255,255,.7); font-family: var(--font-sans);
  font-size: .85rem; letter-spacing: .04em;
  padding-left: 1.4rem; position: relative;
}
.check__list li::before {
  content: '';
  position: absolute; left: 0; top: .6em;
  width: 6px; height: 1px; background: var(--green-sign);
}

/* Composición botánica CSS animada */
.nosotros__visual { display: flex; align-items: center; justify-content: center; }

.botanical {
  width: 320px; height: 320px; position: relative;
  display: flex; align-items: center; justify-content: center;
}

.botanical__circle {
  position: absolute; border-radius: 50%;
  background: rgba(141,184,122,.08);
}
.botanical__circle--1 {
  width: 320px; height: 320px;
  animation: spin-slow 30s linear infinite;
}
.botanical__circle--2 {
  width: 220px; height: 220px;
  background: rgba(141,184,122,.06);
  animation: spin-slow 20s linear infinite reverse;
}
.botanical__circle--3 {
  width: 130px; height: 130px;
  background: rgba(141,184,122,.1);
}

.botanical__ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(141,184,122,.2);
}
.botanical__ring--1 { width: 300px; height: 300px; animation: spin-slow 40s linear infinite; }
.botanical__ring--2 { width: 200px; height: 200px; animation: spin-slow 25s linear infinite reverse; }

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hojas orbitando */
.botanical__leaf {
  position: absolute; width: 28px; height: 50px;
  background: rgba(141,184,122,.3);
  border-radius: 100% 0 100% 0;
}
.botanical__leaf--1 { animation: orbit-leaf 12s linear infinite; }
.botanical__leaf--2 { animation: orbit-leaf 12s linear infinite; animation-delay: -3s; }
.botanical__leaf--3 { animation: orbit-leaf 12s linear infinite; animation-delay: -6s; }
.botanical__leaf--4 { animation: orbit-leaf 12s linear infinite; animation-delay: -9s; }

@keyframes orbit-leaf {
  0%   { transform: rotate(0deg)   translateX(130px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(130px) rotate(-360deg); }
}

.botanical__center {
  position: relative; z-index: 2;
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(141,184,122,.15);
  border: 1px solid rgba(141,184,122,.3);
  display: flex; align-items: center; justify-content: center;
}
.botanical__center span {
  font-family: var(--font-serif); font-size: 2rem; font-weight: 600;
  color: rgba(255,255,255,.6); letter-spacing: .05em;
}


/* =============================================
   HORARIO
   ============================================= */
.horario__wrapper {
  display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start;
}
.horario__table { border: 1px solid rgba(30,74,30,.12); }

.horario__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.5rem; border-bottom: 1px solid rgba(30,74,30,.07);
  transition: background var(--transition);
}
.horario__row:last-child { border-bottom: none; }
.horario__row:hover { background: var(--green-pale); }
.horario__row--closed { opacity: .4; }

.horario__day {
  font-family: var(--font-serif); font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark);
}
.horario__hours { color: var(--text-mid); font-family: var(--font-sans); font-size: .85rem; }
.horario__hours--closed { font-style: italic; }

.horario__aside { display: flex; flex-direction: column; gap: 1rem; }

.aside__card { border: 1px solid rgba(30,74,30,.12); padding: 2rem; }
.aside__card h3 {
  font-family: var(--font-serif); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-dark); margin-bottom: .6rem;
}
.aside__card p { color: var(--text-mid); font-size: .9rem; margin-bottom: 1.5rem; }

.aside__info {
  border: 1px solid rgba(30,74,30,.1); padding: 1rem 1.5rem;
  font-family: var(--font-sans); font-size: .8rem; color: var(--text-mid); letter-spacing: .04em;
}


/* =============================================
   CONTACTO
   ============================================= */
.contacto__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.contacto__address { display: flex; flex-direction: column; gap: 2rem; }

.contacto__item strong {
  display: block; font-family: var(--font-serif); font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-sign); margin-bottom: .5rem;
}
.contacto__item p { color: rgba(255,255,255,.6); font-size: .95rem; line-height: 1.75; }

.link--map {
  display: inline-block; margin-top: .6rem;
  font-family: var(--font-sans); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green-sign);
  border-bottom: 1px solid rgba(141,184,122,.3);
  transition: border-color var(--transition), color var(--transition);
}
.link--map:hover { border-color: var(--green-sign); }

.link--phone {
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600;
  color: var(--white); letter-spacing: .06em;
  display: inline-block;
  transition: color var(--transition);
}
.link--phone:hover { color: var(--green-sign); }

.contacto__map { height: 460px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); }
.contacto__map iframe { width: 100%; height: 100%; }


/* =============================================
   FOOTER
   ============================================= */
.footer { background: #111e11; color: rgba(255,255,255,.45); padding: 4rem 0 0; }

.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer__logo {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); display: block; margin-bottom: .75rem;
}
.footer__brand p { font-size: .88rem; margin-bottom: .5rem; }
.footer__brand address { font-size: .88rem; line-height: 1.8; }
.footer__brand a:hover { color: var(--white); }

.footer__links h4, .footer__horario h4 {
  font-family: var(--font-sans); font-size: .65rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.25); margin-bottom: 1.2rem;
}
.footer__links ul { display: flex; flex-direction: column; gap: .6rem; }
.footer__links a { font-size: .88rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__horario p { font-size: .88rem; margin-bottom: .4rem; }

.footer__bottom {
  text-align: center; padding: 1.5rem;
  font-family: var(--font-sans); font-size: .68rem;
  color: rgba(255,255,255,.18); letter-spacing: .08em;
}


/* =============================================
   FAB
   ============================================= */
.fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  width: 54px; height: 54px;
  background: var(--green-dark); color: var(--white);
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: background var(--transition);
}
.fab:hover { background: var(--green); }


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nosotros__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .nosotros__visual { order: -1; }
  .botanical { width: 240px; height: 240px; }
  .botanical__circle--1 { width: 240px; height: 240px; }
  .botanical__circle--2 { width: 170px; height: 170px; }
  .botanical__ring--1   { width: 225px; height: 225px; }
  .botanical__ring--2   { width: 155px; height: 155px; }
  @keyframes orbit-leaf {
    0%   { transform: rotate(0deg)   translateX(95px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(95px) rotate(-360deg); }
  }

  .horario__wrapper { grid-template-columns: 1fr; }
  .contacto__inner  { grid-template-columns: 1fr; }
  .contacto__map { height: 320px; order: -1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed; inset: 0; top: 64px;
    background: var(--white);
    flex-direction: column; align-items: center; justify-content: center;
    gap: .25rem; transform: translateX(100%); transition: transform .35s ease;
    z-index: 99;
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__link { font-size: .9rem; padding: .85rem 2.5rem; }
  .nav__cta  { display: none; }
  .nav__burger { display: flex; }
  .nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .section { padding: 4rem 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .fab { display: flex; }

  .hero::after { top: 1.5rem; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; }

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

@media (max-width: 480px) {
  .hero__title { letter-spacing: .07em; }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; max-width: 300px; }
  .hero__meta { gap: .5rem; }
  .hero__leaf--3, .hero__leaf--4 { display: none; }
}
