@import url('https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Lora:wght@400;500&display=swap');

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7
}

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

a {
  color: inherit
}

button,
input,
textarea,
select {
  font: inherit
}

button,
a {
  outline-offset: 4px
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--brown)
}

.skip {
  position: absolute;
  left: -9999px
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: white;
  padding: 1rem
}

/* Cabecera y navegación compartidas. */
.topbar {
  background: #f4efeb;
  position: relative
}

.top-inner {
  max-width: 1200px;
  margin: auto;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.5vw, 55px)
}

.nav a,
.social,
.eyebrow,
.button,
.text-link,
.filter,
label,
.footer-links {
  font-family: var(--body);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none
}

.nav a {
  padding: 14px 0 10px;
  border-bottom: 1px solid transparent
}

.nav a[aria-current=page],
.nav a:hover {
  border-color: var(--taupe)
}

.social {
  position: absolute;
  right: 5%;
  font-size: 1.2rem;
  letter-spacing: 0
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  color: var(--brown)
}

/* Logotipo y límites del contenido. */
.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 175px
}

.brand img {
  width: min(310px, 66vw);
  max-height: 150px;
  object-fit: contain
}

.wrap {
  max-width: 1200px;
  margin: auto
}

/* Cabeceras y llamadas a la acción. */
.hero {
  min-height: 430px;
  background: url('../imagenes/inicio/Acuarela de iglesia entre flores y arte-1.png') center/cover;
  display: flex;
  align-items: center;
  padding: 5%
}

.hero-card {
  background: rgba(250, 248, 245, .95);
  padding: 36px 42px;
  max-width: 410px
}

.hero h1,
.page-hero h1 {
  font: 400 clamp(2.6rem, 4.8vw, 4.2rem)/1.05 var(--serif);
  margin: 0 0 24px
}

.hero h1 em {
  display: block;
  font-weight: 400
}

.button {
  display: inline-block;
  background: #a58d80;
  color: white;
  border: 1px solid #a58d80;
  padding: 12px 23px;
  cursor: pointer;
  text-align: center
}

.button:hover {
  background: var(--brown)
}

.button:disabled {
  opacity: .55;
  cursor: not-allowed
}

.section {
  padding: 72px 7%
}

/* Presentación, títulos de sección y tarjetas. */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center
}

.intro img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center 35%
}

.script {
  font: 400 3.5rem/1 var(--script);
  color: #967d70;
  margin: 0 0 15px
}

.intro p {
  max-width: 520px
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 1px solid var(--taupe);
  padding-bottom: 5px
}

.section-title {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: center;
  font-size: .85rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0 0 35px;
  text-align: center
}

.section-title:before,
.section-title:after {
  content: '';
  height: 1px;
  background: var(--sand);
  flex: 1
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.card {
  text-align: center;
  background: #f5f1ed;
  padding-bottom: 25px
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover
}

.card h3 {
  font: italic 400 2rem/1.05 var(--serif);
  margin: 24px 12px 12px
}

.card p {
  margin: 0 auto;
  max-width: 270px;
  padding: 0 15px;
  font-size: .88rem
}

/* Cabeceras interiores y presentación del estudio. */
.page-hero {
  min-height: 230px;
  background: url('../imagenes/inicio/Acuarela de iglesia entre flores y arte-1.png') center 54%/cover;
  display: flex;
  align-items: center;
  padding: 5%
}

.page-hero h1 {
  background: rgba(250, 248, 245, .94);
  padding: 22px 38px;
  margin: 0;
  font-style: italic
}

.page-hero.center {
  justify-content: center
}

.page-hero.center h1 {
  text-align: center
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center
}

.about-grid>img {
  height: 400px;
  width: 100%;
  object-fit: cover
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 35px
}

.photo-row img {
  width: 100%;
  height: 210px;
  object-fit: cover
}

.quote {
  text-align: center;
  background: var(--ivory);
  padding: 50px 20px;
  font: italic 1.8rem var(--serif)
}

/* Filtros, cuadrícula y ampliación de la galería. */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px
}

.filter {
  background: transparent;
  border: 0;
  padding: 10px 14px;
  cursor: pointer
}

.filter[aria-pressed=true] {
  background: var(--ivory)
}

.gallery {
  columns: 3;
  column-gap: 14px
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  margin: 0 0 14px;
  break-inside: avoid
}

.gallery-item img {
  width: 100%;
  height: auto
}

.gallery-status {
  text-align: center
}

.lightbox {
  border: 0;
  background: rgba(35, 27, 23, .94);
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  padding: 35px
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, .8)
}

.lightbox img {
  max-height: 100%;
  max-width: 100%;
  margin: auto;
  object-fit: contain
}

.lightbox button {
  position: absolute;
  right: 20px;
  top: 10px;
  color: white;
  background: none;
  border: 0;
  font-size: 2rem;
  cursor: pointer
}

/* Distribución de la página de contacto. */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%
}

.contact-art img {
  max-height: 360px;
  width: 100%;
  object-fit: cover
}

.contact-form label {
  display: block;
  margin-bottom: 17px
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--sand);
  background: transparent;
  padding: 11px;
  margin-top: 6px;
  color: var(--ink)
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical
}

.contact-form .button {
  width: 100%
}

.notice {
  font-size: .88rem
}

/* Pie de página y franja decorativa. */
.footer {
  background: var(--ivory);
  text-align: center;
  padding: 45px 20px
}

.footer p {
  margin: 8px
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap
}

.footer-links a {
  text-decoration: none
}

.banner-bottom {
  height: 100px;
  background: url('../imagenes/inicio/Acuarela de iglesia entre flores y arte-1.png') center 25%/cover
}

.service-detail {
  text-align: center;
  max-width: 750px;
  margin: auto
}

.service-detail img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin: 25px 0
}

/* Subrayado del menú: la página activa permanece marcada. */
.nav a {
  position: relative;
  border-bottom-color: transparent !important;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--taupe);
  transform: scaleX(0);
  transform-origin: left;
}

.nav a[aria-current="page"]::after,
.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: no-preference) {
  .nav a::after {
    transition: transform 300ms ease;
  }
}

/* Entrada discreta al abrir cada página, sin interferir en la navegación. */
@media (prefers-reduced-motion: no-preference) {
  main.wrap {
    animation: entrada-pagina 420ms ease-out both;
  }

  @keyframes entrada-pagina {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mantener visible la parte superior del retrato en la fila de fotografías. */
.photo-row img:nth-child(2) {
  object-fit: cover;
  object-position: center top;
}

/* Contenido de las páginas de servicio. */
.service-detail h1 {
  font: italic 400 clamp(2.8rem, 5vw, 4rem)/1.1 var(--serif);
  margin: 0;
}

.service-detail .service-intro {
  font: italic 1.5rem/1.45 var(--serif);
  margin: 18px auto 30px;
}

.service-copy {
  max-width: 620px;
  margin: 42px auto;
}

.service-copy h2 {
  font: italic 400 2rem/1.2 var(--serif);
  margin: 38px 0 12px;
}

.service-copy p {
  margin: 0;
}

.service-invitation {
  padding: 30px 24px;
  background: var(--ivory);
}

.service-invitation p:first-child {
  max-width: 520px;
  margin: 0 auto 20px;
}

/* Detalles botánicos de la presentación en portada. */
.intro-copy {
  position: relative;
  padding-right: clamp(90px, 20%, 150px);
}

.intro-copy .script {
  display: flex;
  align-items: center;
  gap: 20px;
}

.intro-copy .script::after {
  content: '';
  display: block;
  width: 65px;
  height: 1px;
  flex: 0 1 65px;
  background: var(--taupe);
}

.intro-copy .intro-sprig {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(75px, 19%, 120px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

@media (max-width: 700px) {
  .intro-copy {
    padding-right: 85px;
  }

  .intro-copy .script {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .intro-copy .intro-sprig {
    width: 75px;
  }
}

/* Cada apartado muestra una fotografía relacionada con su contenido. */
.page-hero.hero-sobre-mi,
.page-hero.hero-servicios,
.page-hero.hero-galeria {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ivory);
}

.page-hero.hero-sobre-mi::before,
.page-hero.hero-servicios::before,
.page-hero.hero-galeria::before {
  content: '';
  position: absolute;
  inset: 0 0 0 25%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32%);
  mask-image: linear-gradient(to right, transparent, #000 32%);
}

.page-hero.hero-sobre-mi::before {
  background-image: url('../imagenes/sobre-mi/live-art-12.jpg');
  background-position: center 48%;
}

.page-hero.hero-servicios::before {
  background-image: url('../imagenes/galeria/live-art/live art/live-art-01.jpg');
  background-position: center 42%;
}

.page-hero.hero-galeria::before {
  background-image: url('../imagenes/galeria/encargos/encargos personalizados/encargo-01.jpg');
  background-position: center 48%;
}

.page-hero.hero-contacto {
  background-image: url('../imagenes/inicio/Acuarela de una iglesia andaluza-2.png');
  background-position: center 50%;
}

@media (max-width: 700px) {

  .page-hero.hero-sobre-mi::before,
  .page-hero.hero-servicios::before,
  .page-hero.hero-galeria::before {
    left: 12%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
    mask-image: linear-gradient(to right, transparent, #000 45%);
  }

  .page-hero.hero-contacto {
    background-position: 65% center;
  }
}

/* Iconos y desplegable de redes sociales. */
.social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--brown);
}

.social-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.social-pending {
  cursor: default;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.contact-links .text-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.contact-grid {
  grid-template-columns: minmax(0, 700px);
  justify-content: center;
}

/* Carrusel de portada: escenas decorativas y controles accesibles. */
.hero-carousel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 5%;
  background: var(--ivory);
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide[hidden],
.hero-controls[hidden] {
  display: none;
}

.hero-slide {
  background-color: var(--ivory);
  background-position: center;
  background-size: cover;
}

.hero-slide-original {
  background-image: url('../imagenes/inicio/Acuarela de iglesia entre flores y arte-1.png');
}

.hero-slide-floral {
  background-image: url('../imagenes/inicio/fondo-slider-floral.png');
}

.hero-slide-linen {
  background-image: url('../imagenes/inicio/fondo-slider-lino.png');
}

.hero-slide:nth-child(2) {
  background-image: url('../imagenes/inicio/slider-abanicos-integrado.png');
}

.hero-slide:nth-child(3) {
  background-image: url('../imagenes/inicio/slider-recordatorios-integrado.png');
}

.hero-slide:nth-child(4) {
  background-image: url('../imagenes/inicio/slider-live-art-integrado.png');
}

.hero-slide:nth-child(5) {
  background-image: url('../imagenes/inicio/slider-papeleria-integrado.png');
}

.hero-slide:nth-child(6) {
  background-image: url('../imagenes/inicio/slider-retratos-integrado.png');
}

.hero-slide img {
  position: absolute;
  right: 8%;
  top: 7%;
  width: 43%;
  height: 86%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 12px 18px rgba(89, 67, 58, .17));
}

.hero-carousel .hero-card {
  position: relative;
  z-index: 1;
}

.hero-carousel .hero-card h1 {
  font: 400 clamp(2.6rem, 4.8vw, 4.2rem)/1.05 var(--serif);
  margin: 0 0 24px;
}

.hero-carousel .hero-card h1 em {
  display: block;
  font-weight: 400;
}

.hero-controls {
  position: absolute;
  z-index: 2;
  bottom: 16px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(250, 248, 245, .92);
  color: var(--brown);
}

.hero-controls button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  font: 2rem/1 var(--serif);
  padding: 2px 8px;
}

.hero-count,
.hero-pause {
  font: .7rem/1.4 var(--body);
  letter-spacing: .08em;
}

.hero-pause {
  padding: 6px;
}

.hero-pause:disabled {
  opacity: .6;
  cursor: default;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-slide.is-leaving {
    z-index: 0;
  }

  .hero-slide.is-entering {
    z-index: 1;
    animation: hero-entrar 700ms cubic-bezier(.25, .7, .25, 1) both;
  }

  .hero-carousel[data-direction="previous"] .hero-slide.is-entering {
    animation-name: hero-entrar-anterior;
  }

  @keyframes hero-entrar {
    from {
      transform: translateX(100%);
    }

    to {
      transform: translateX(0);
    }
  }

  @keyframes hero-entrar-anterior {
    from {
      transform: translateX(-100%);
    }

    to {
      transform: translateX(0);
    }
  }
}

@media (max-width: 700px) {
  .hero-carousel {
    min-height: 360px;
    padding: 20px;
    align-items: center;
  }

  .hero-carousel .hero-card {
    max-width: 190px;
    padding: 20px;
  }

  .hero-carousel .hero-card h1 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .hero-slide img {
    right: 2%;
    top: 10%;
    width: 52%;
    height: 72%;
  }

  .hero-controls {
    right: 8px;
    bottom: 8px;
  }
}

.topbar {
  z-index: 10;
}

.drive-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.drive-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.drive-menu summary::-webkit-details-marker {
  display: none;
}

.drive-menu summary:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 4px;
}

.drive-options {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(310px, calc(100vw - 32px));
  padding: 8px 0;
  background: var(--paper);
  border: 1px solid var(--sand);
  box-shadow: 0 8px 24px rgba(89, 67, 58, .14);
}

.drive-options a {
  display: block;
  padding: 12px 16px;
  color: var(--brown);
  font: 400 .82rem/1.4 var(--body);
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
}

.drive-options a:hover,
.drive-options a:focus-visible {
  background: var(--ivory);
}

/* Contenedores de los reels incrustados desde Instagram. */
.reels-content {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(35px, 8vw, 100px);
  align-items: center;
  max-width: 860px;
  margin: auto;
}

.reel-embed {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--ivory);
}

.reel-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 25px;
  text-align: center;
}

.reel-placeholder p {
  font: italic 1.7rem/1.2 var(--serif);
  margin: 0;
}

.reel-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0 0 0 4px;
  border: 1px solid var(--taupe);
  border-radius: 50%;
  background: transparent;
  color: var(--brown);
  cursor: pointer;
}

.reel-mark:hover {
  background: var(--sand);
}

.reel-placeholder .reel-hint {
  font: .85rem/1.5 var(--body);
}

.reel-copy p {
  max-width: 400px;
}

.reels-intro,
.reels-note {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 30px;
}

.reels-note {
  margin: 30px auto 0;
  font-size: .85rem;
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 24px;
  align-items: start;
}

.reel-card {
  text-align: center;
  min-width: 0;
}

/* Accesos a redes y contacto, con la misma presentación que los servicios. */
.connect-cards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.connect-cards>.card {
  grid-column: span 2;
}

.connect-cards>.card:nth-child(4) {
  grid-column: 2 / span 2;
}

.connect-cards .card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: var(--ivory);
}

.connect-cards .card img[src$="whatsapp-angela.jpg"] {
  object-fit: cover;
  object-position: center 85%;
}

.connect-cards .card h3 {
  font-size: 1.8rem;
}

.connect-pending {
  opacity: .7;
}

/* Ramitas discretas junto a los títulos de sección. */
.section-title::before,
.section-title::after {
  height: 38px;
  background: url('../imagenes/decoracion/ramita-horizontal.svg') left center / 55px 28px no-repeat,
    linear-gradient(to right, transparent 65px, var(--sand) 65px) center / 100% 1px no-repeat;
}

.section-title::after {
  transform: scaleX(-1);
}

@media (max-width: 700px) {
  .section-title {
    gap: 12px;
  }

  .section-title::before,
  .section-title::after {
    background-size: 35px 20px, 100% 1px;
  }

}

.connect-documents summary {
  cursor: pointer;
  list-style: none;
}

.connect-documents summary::-webkit-details-marker {
  display: none;
}

.connect-documents summary:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 4px;
}

.connect-documents div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 18px 0;
}

.connect-documents div a {
  color: var(--brown);
  font-size: .8rem;
  line-height: 1.5;
}

@media (min-width: 701px) and (max-width: 950px) {
  .connect-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connect-cards>.card,
  .connect-cards>.card:nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .connect-cards {
    grid-template-columns: 1fr;
  }

  .connect-cards>.card,
  .connect-cards>.card:nth-child(4) {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .reels-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .reel-embed {
    max-width: 360px;
    margin: auto;
  }

  .reel-copy {
    text-align: center;
  }

  .reel-copy p {
    margin-left: auto;
    margin-right: auto;
  }
}
