/* 
  Obra de Amor — Diseño Celeste Elegante
  Estilo limpio, moderno y contemplativo
*/

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

/* ═══════════════════════════════
   VARIABLES
   ═══════════════════════════════ */
:root {
  --celeste-50: #f0f9ff;
  --celeste-100: #e0f2fe;
  --celeste-200: #bae6fd;
  --celeste-300: #7dd3fc;
  --celeste-400: #38bdf8;
  --celeste-500: #0ea5e9;
  --celeste-600: #0284c7;
  --celeste-700: #0369a1;
  --celeste-800: #075985;
  --celeste-900: #0c4a6e;

  --gold-300: #dfc476;
  --gold-400: #c9a84c;
  --gold-500: #b8942f;

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--gray-700);
  background-color: var(--celeste-50);
  background-image: url('../images/celeste2.jpg');
  background-repeat: repeat;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--celeste-200);
  color: var(--celeste-900);
}

/* ═══════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--celeste-800);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
}

h3 {
  font-size: 1.55rem;
  margin-top: 1.25rem;
  color: var(--celeste-700);
}

h4 {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  color: var(--celeste-600);
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--celeste-600);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--celeste-800);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--celeste-300);
}

strong {
  color: var(--gray-800);
}

/* ═══════════════════════════════
   LAYOUT
   ═══════════════════════════════ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ═══════════════════════════════
   HEADER
   ═══════════════════════════════ */
header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(186, 230, 253, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  border-radius: 0;
  box-shadow: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--celeste-800);
  letter-spacing: 0.01em;
}

/* Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.active,
.nav-item:hover>.nav-link {
  color: var(--celeste-700);
  text-decoration: none;
}

.arrow {
  font-size: 1rem;
  margin-left: 2px;
  opacity: 0.8;
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border: 1px solid var(--celeste-100);
  box-shadow: 0 12px 40px rgba(12, 74, 110, 0.1), 0 2px 8px rgba(12, 74, 110, 0.06);
  border-radius: var(--radius-sm);
  list-style: none;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease);
  overflow: hidden;
}

.nav-item.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item a {
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 0.86rem;
  color: var(--gray-600);
  transition: all 0.2s var(--ease);
}

.dropdown-item a:hover {
  background: var(--celeste-50);
  color: var(--celeste-700);
  text-decoration: none;
  padding-left: 1.35rem;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--celeste-700);
  margin: 5px 0;
  border-radius: 1px;
  transition: all 0.3s var(--ease);
}

/* ═══════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════ */
main {
  flex: 1;
  padding: 2rem 0 3.5rem;
}

.page-wrapper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(12, 74, 110, 0.04), 0 8px 30px rgba(12, 74, 110, 0.06);
  padding: 2.75rem 3rem;
  border: 1px solid rgba(186, 230, 253, 0.35);
  position: relative;
}

/* ═══════════════════════════════
   BLOCKQUOTES
   ═══════════════════════════════ */
blockquote {
  position: relative;
  padding: 1.75rem 2rem 1.75rem 2.25rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--celeste-50) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-radius: var(--radius-sm);
  border: 1px solid var(--celeste-200);
  border-left: 4px solid var(--celeste-400);
}

blockquote::before {
  content: '\201C';
  position: absolute;
  top: 0.25rem;
  left: 0.6rem;
  font-size: 3.5rem;
  font-family: var(--font-display);
  color: var(--celeste-300);
  line-height: 1;
  pointer-events: none;
}

blockquote p {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--gray-700);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--celeste-600);
  font-weight: 600;
  text-align: right;
  font-style: normal;
}

blockquote cite::before {
  content: '— ';
}

/* ═══════════════════════════════
   COLUMN GRIDS
   ═══════════════════════════════ */
.wp-block-columns,
.kt-row-column-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.25rem;
  margin: 1.75rem 0;
  align-items: start;
}

.wp-block-column,
.wp-block-kadence-column {
  min-width: 0;
}

/* ═══════════════════════════════
   IMAGES
   ═══════════════════════════════ */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xs);
  box-shadow: 0 2px 8px rgba(12, 74, 110, 0.08);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.page-wrapper figure img:hover,
.page-wrapper .wp-block-image img:hover {
  transform: scale(1.015);
  box-shadow: 0 8px 30px rgba(12, 74, 110, 0.12);
}

.aligncenter,
.align-center {
  display: block;
  margin: 1.25rem auto;
  text-align: center;
}

figure {
  margin: 0;
}

/* ═══════════════════════════════
   LISTS
   ═══════════════════════════════ */
ol,
ul {
  margin: 0.75rem 0 0.5rem 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

/* ═══════════════════════════════
   SEPARATORS
   ═══════════════════════════════ */
hr,
hr.wp-block-separator {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--celeste-300) 50%, transparent 95%);
  margin: 2.5rem auto;
  max-width: 240px;
}

.wp-block-spacer,
.kt-block-spacer {
  clear: both;
}

/* ═══════════════════════════════
   CAROUSEL
   ═══════════════════════════════ */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16 / 7;
  margin: 1.75rem auto;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(12, 74, 110, 0.1);
  border: 1px solid var(--celeste-200);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
  background: var(--celeste-900);
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.carousel-slide img:hover {
  transform: none;
  box-shadow: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  color: var(--celeste-800);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: var(--celeste-600);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s var(--ease);
}

.carousel-dot.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.3);
}

/* ═══════════════════════════════
   CONTACT
   ═══════════════════════════════ */
.contact-form-wrapper h3 {
  margin-top: 0;
}

.contact-form {
  background: var(--celeste-50);
  padding: 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--celeste-200);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--celeste-200);
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--celeste-400);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.btn-primary {
  display: inline-block;
  background: var(--celeste-600);
  color: var(--white);
  border: none;
  padding: 0.7rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: var(--celeste-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.25);
  text-decoration: none;
}

.contact-info {
  padding-top: 0.5rem;
}

.contact-info p {
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

.contact-info strong {
  color: var(--celeste-700);
  font-size: 1.05rem;
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
footer {
  background: var(--celeste-900);
  color: var(--celeste-300);
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--celeste-300);
  font-size: 0.84rem;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-copy {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--celeste-400);
  opacity: 0.6;
}

/* ═══════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════
   MOBILE
   ═══════════════════════════════ */
@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--celeste-100);
    box-shadow: 0 0 60px rgba(12, 74, 110, 0.1);
    flex-direction: column;
    align-items: stretch;
    transition: left 0.35s var(--ease);
    overflow-y: auto;
    padding: 4.5rem 0 2rem;
    gap: 0;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--celeste-100);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-link {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    border: none;
    box-shadow: none;
    background: var(--celeste-50);
    padding-left: 1rem;
    transform: none;
    transition: none;
    border-radius: 0;
    min-width: auto;
  }

  .nav-item.has-dropdown.active .dropdown-menu {
    display: block;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .page-wrapper {
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-sm);
  }

  .wp-block-columns,
  .kt-row-column-wrap {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  blockquote {
    padding: 1.5rem 1.25rem 1.5rem 2rem;
  }

  blockquote::before {
    font-size: 2.8rem;
    left: 0.4rem;
  }

  .carousel-container {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.1rem;
  }

  .logo-img {
    height: 34px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .carousel-btn.prev {
    left: 6px;
  }

  .carousel-btn.next {
    right: 6px;
  }
}