/*
Theme Name: Dani Mago V1
Author: Dani Mago
Description: Tema WordPress personalizado para Dani Mago. Magia para todos en Sevilla y alrededores.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: mago-dani
*/

:root {
  --purple: #32105f;
  --purple-dark: #160b27;
  --purple-soft: #6d45a5;
  --violet: #8e52d6;
  --red: #e51f45;
  --gold: #ffc928;
  --cyan: #22b8b0;
  --cream: #fbf8ff;
  --white: #fff;
  --ink: #20152d;
  --muted: #665d72;
  --shadow: 0 18px 50px rgba(34, 12, 62, .14);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6
}

a {
  color: inherit;
  text-decoration: none
}

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

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

.container {
  width: min(calc(100% - 36px), var(--max));
  margin: auto
}

.screen-reader-text {
  position: absolute !important;
  left: -9999px
}

/* HEADER */

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(22, 11, 39, .92);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 22px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px
}

.brand-text {
  font-family: "Baloo 2", sans-serif;
  font-size: 25px;
  font-weight: 900;
  line-height: .9
}

.brand-text span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 5px
}

.primary-nav {
  margin-left: auto
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 23px;
  margin: 0;
  padding: 0
}

.primary-nav a {
  font-weight: 900;
  color: #fff;
  transition: .2s
}

.primary-nav a:hover {
  color: var(--gold)
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s
}

.header-cta {
  background: var(--gold);
  color: var(--purple-dark)
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px)
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  padding: 10px 13px
}

/* HERO */

.hero {
  position: relative;
  min-height: 730px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg,
      rgba(22, 11, 39, .98) 0%,
      rgba(50, 16, 95, .94) 37%,
      rgba(50, 16, 95, .55) 56%,
      rgba(50, 16, 95, .08) 82%),
    url("assets/images/hero-mago-dani.jpg") 78% center/cover no-repeat
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 20%,
      rgba(255, 201, 40, .12),
      transparent 22%),
    radial-gradient(circle at 42% 78%,
      rgba(34, 184, 176, .12),
      transparent 24%)
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 52%;
  padding: 140px 0 70px
}

.kicker {
  font-weight: 900;
  letter-spacing: 1.7px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 14px
}

.hero h1 {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(52px, 6.5vw, 86px);
  line-height: .9;
  margin: 12px 0 22px;
  font-weight: 900;
  letter-spacing: -1.5px
}

.hero h1 span {
  display: block;
  color: var(--gold)
}

.hero p {
  font-size: 20px;
  max-width: 610px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .92)
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.btn-purple {
  background: var(--violet);
  color: #fff
}

.btn-gold {
  background: var(--gold);
  color: var(--purple-dark)
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, .7);
  color: #fff;
  background: transparent
}

.location {
  margin-top: 18px;
  font-weight: 900
}

/* SECTIONS */

.section {
  padding: 76px 0
}

.section-title {
  text-align: center;
  font-family: "Baloo 2", sans-serif;
  font-size: 40px;
  line-height: 1.05;
  margin: 0 0 36px;
  color: var(--purple-dark)
}

.section-title .spark {
  color: var(--gold)
}

/* EVENTOS */

.events {
  background: var(--cream)
}

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

.event-card {
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(50, 16, 95, .06);
  position: relative;
  overflow: hidden
}

.event-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--violet)
}

.event-card:nth-child(2):before,
.event-card:nth-child(5):before {
  background: var(--gold)
}

.event-card:nth-child(3):before,
.event-card:nth-child(6):before {
  background: var(--cyan)
}

.event-icon {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: #f0e7ff;
  margin-bottom: 14px
}

.event-card:nth-child(2) .event-icon,
.event-card:nth-child(5) .event-icon {
  background: #fff5c8
}

.event-card:nth-child(3) .event-icon,
.event-card:nth-child(6) .event-icon {
  background: #ddf7f5
}

.event-card h3 {
  font-family: "Baloo 2", sans-serif;
  font-size: 25px;
  line-height: 1.05;
  margin: 0 0 8px;
  color: var(--purple)
}

.event-card p {
  margin: 0;
  color: var(--muted)
}

/* ABOUT */

.about {
  background: var(--purple-dark);
  color: #fff
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.7fr 1fr;
  gap: 35px;
  align-items: center
}

.about-photo {
  width: 270px;
  height: 270px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
  border: 5px solid rgba(255, 255, 255, .1)
}

.about h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: 44px;
  line-height: 1;
  margin: 0 0 16px;
  color: #fff
}

.about p {
  color: rgba(255, 255, 255, .84)
}

.stats {
  border-left: 1px solid rgba(255, 255, 255, .18);
  padding-left: 28px;
  display: grid;
  gap: 17px
}

.stat {
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 900
}

.stat-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--violet);
  flex: 0 0 auto
}

.stat:nth-child(2) .stat-bubble {
  background: var(--gold);
  color: var(--purple-dark)
}

.stat:nth-child(3) .stat-bubble {
  background: var(--cyan);
  color: var(--purple-dark)
}

.stat:nth-child(4) .stat-bubble {
  background: var(--red)
}

/* VIDEO */

.video-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 35px;
  align-items: center
}

.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1c0c39
}

.video-box img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

/* VÍDEO YOUTUBE */

.video-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center
}

.play span {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  display: grid;
  place-items: center;
  font-size: 34px;
  color: var(--purple);
  padding-left: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25)
}

.video-copy h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--purple-dark);
  white-space: nowrap;
  letter-spacing: -.4px
}

.video-copy {
  text-align: center
}

.video-copy h2 .spark {
  color: var(--gold)
}

.video-copy .btn {
  display: flex;
  width: fit-content;
  margin: 20px auto 0
}

/* GALLERY */

.gallery {
  background: var(--cream)
}

.gallery-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px
}

.gallery-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none
}

.gallery-track::-webkit-scrollbar {
  display: none
}

.gallery-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(50, 16, 95, .07)
}

.gallery-media {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #1c0c39
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease
}

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

.gallery-type {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--gold);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 900;
  padding: 6px 9px;
  border-radius: 999px;
  letter-spacing: .5px
}

.gallery-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 22px;
  padding-left: 3px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .25)
}

.gallery-no-image {
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Baloo 2", sans-serif;
  font-size: 28px;
  background: linear-gradient(135deg, var(--purple-dark), var(--violet))
}

.gallery-card-body {
  padding: 14px 16px 16px
}

.gallery-card-body h3 {
  font-family: "Baloo 2", sans-serif;
  color: var(--purple);
  font-size: 22px;
  line-height: 1.05;
  margin: 0
}

.gallery-arrow {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(50, 16, 95, .18);
  transition: .2s
}

.gallery-arrow:hover {
  background: var(--gold);
  color: var(--purple-dark);
  transform: translateY(-2px)
}

.gallery-more-wrap {
  text-align: center;
  margin-top: 26px
}

.gallery-placeholder {
  min-height: 180px;
  border: 2px dashed #cfc0df;
  border-radius: 22px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px;
  color: var(--muted);
  background: #fff
}

.gallery-placeholder strong {
  display: block;
  color: var(--purple);
  font-family: "Baloo 2", sans-serif;
  font-size: 27px;
  margin-bottom: 6px
}

/* CONTACT */

.contact {
  background: linear-gradient(110deg,
      var(--purple),
      #5c2a96 58%,
      #32105f);
  color: #fff
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 35px;
  align-items: center
}

.contact-success {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 22px;
  border: 2px solid var(--gold);
  border-radius: 14px;
  background: rgba(255, 201, 40, .96);
  color: var(--purple-dark);
  font-family: "Baloo 2", sans-serif;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  animation: contact-success-hide 5s ease forwards
}

.contact-success-icon {
  flex: 0 0 auto;
  font-size: 25px;
  line-height: 1
}

.contact-error {
  grid-column: 1/-1;
  padding: 16px 22px;
  border: 2px solid #ffb4ab;
  border-radius: 14px;
  background: #b42318;
  color: #fff;
  font-size: 17px;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2)
}

.contact-error strong,
.contact-error span {
  display: block
}

.contact-error a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px
}

.contact-error {
  animation: contact-error-hide 5s ease forwards
}

@keyframes contact-error-hide {

  0%,
  82% {
    opacity: 1;
    visibility: visible
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
  }
}

@keyframes contact-success-hide {

  0%,
  82% {
    opacity: 1;
    visibility: visible
  }

  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
  }
}

.contact h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: 50px;
  line-height: 1;
  margin: 0 0 16px
}

.contact p {
  font-size: 18px;
  color: rgba(255, 255, 255, .9)
}

.contact-details {
  display: grid;
  gap: 12px;
  margin: 25px 0
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 900
}

.contact-detail span:first-child {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  display: grid;
  place-items: center
}

.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2)
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.field {
  display: grid;
  gap: 6px
}

.field.full {
  grid-column: 1/-1
}

.field label {
  font-weight: 900;
  font-size: 14px
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #ded7e6;
  border-radius: 10px;
  background: #fff;
  outline: none
}

.field input:disabled {
  background: #f0edf4;
  border-color: #c9c2d4;
  color: var(--muted);
  cursor: not-allowed;
  opacity: .72
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(142, 82, 214, .12)
}

.field textarea {
  min-height: 120px;
  resize: vertical
}

.form-submit {
  margin-top: 15px;
  width: 100%;
  background: var(--red);
  color: #fff
}

/* FOOTER */

.site-footer {
  background: #0d0717;
  color: #fff;
  padding: 32px 0
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 25px;
  align-items: center
}

.footer-brand {
  font-family: "Baloo 2", sans-serif;
  font-size: 22px;
  font-weight: 900
}

.footer-small {
  color: rgba(255, 255, 255, .65);
  font-size: 13px
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  font-size: 14px;
  font-weight: 800
}

.socials {
  display: flex;
  gap: 10px;
  justify-content: flex-end
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  display: grid;
  place-items: center;
  font-weight: 900
}

/* WHATSAPP */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
  transition: .2s
}

.whatsapp-float:hover {
  transform: scale(1.06)
}

.whatsapp-float img {
  width: 36px;
  height: 36px
}

/* ANIMATION */

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease
}

.fade-up.visible {
  opacity: 1;
  transform: none
}

/* TABLET */

@media(max-width:1000px) {

  .primary-nav ul {
    gap: 14px
  }

  .brand {
    min-width: 190px
  }

  .header-cta {
    padding: 11px 14px
  }

  .hero-content {
    width: 58%
  }

  .about-grid {
    grid-template-columns: 1fr 1.7fr
  }

  .stats {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding: 20px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr)
  }

  .video-grid,
  .contact-grid {
    grid-template-columns: 1fr
  }
}

/* MOBILE */

@media(max-width:760px) {

  .navbar {
    min-height: 72px
  }

  .brand img {
    width: 62px;
    height: 62px
  }

  .brand-text {
    font-size: 22px
  }

  .menu-toggle {
    display: block
  }

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 18px;
    right: 18px;
    background: var(--purple-dark);
    border-radius: 15px;
    padding: 12px;
    display: none;
    box-shadow: var(--shadow)
  }

  .primary-nav.open {
    display: block
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0
  }

  .primary-nav li a {
    display: block;
    padding: 11px 10px
  }

  .header-cta {
    display: none
  }

  .hero {
    min-height: 760px;
    background-position: 78% center;
    background-image:
      linear-gradient(180deg,
        rgba(22, 11, 39, .98) 0%,
        rgba(50, 16, 95, .9) 43%,
        rgba(50, 16, 95, .35) 70%,
        rgba(50, 16, 95, .08) 100%),
      url("assets/images/hero-mago-dani.jpg")
  }

  .hero-content {
    width: 100%;
    padding: 125px 18px 45px
  }

  .hero h1 {
    font-size: 54px
  }

  .hero p {
    font-size: 18px
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch
  }

  .hero-buttons .btn {
    width: 100%
  }

  .section {
    padding: 56px 0
  }

  .section-title {
    font-size: 34px
  }

  .event-grid {
    grid-template-columns: 1fr
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center
  }

  .about-photo {
    margin: auto
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    text-align: left
  }

  .video-copy h2 {
    font-size: 30px;
    letter-spacing: -.2px
  }

  .gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none
  }

  .gallery-track::-webkit-scrollbar {
    display: none
  }

  .gallery-card {
    min-width: 84%;
    scroll-snap-align: center
  }

  .gallery-arrow {
    display: none
  }

  .contact h2 {
    font-size: 40px
  }

  .form-grid {
    grid-template-columns: 1fr
  }

  .field.full {
    grid-column: auto
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center
  }

  .socials {
    justify-content: center
  }
}

@media(max-width:420px) {

  .hero h1 {
    font-size: 46px
  }

  .stats {
    grid-template-columns: 1fr
  }
}

/* GALERÍA COMPLETA */

.gallery-page-hero {
  padding: 150px 0 70px;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: #fff;
  text-align: center
}

.gallery-page-hero .kicker {
  color: var(--gold)
}

.gallery-page-hero h1 {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  margin: 12px 0 16px
}

.gallery-page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, .86);
  font-size: 18px
}

.gallery-group {
  margin-bottom: 64px
}

.gallery-group:last-child {
  margin-bottom: 0
}

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

.gallery-page-card .gallery-card-body p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px
}

@media(max-width:1000px) {
  .gallery-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:760px) {

  .gallery-page-hero {
    padding: 125px 0 55px
  }

  .gallery-page-grid {
    grid-template-columns: 1fr
  }

  .gallery-group {
    margin-bottom: 48px
  }
}