/* =========================================
   IGECORET — Diseño Alternativo (Calido & Organico)
   Paleta: Terracota, Sage, Dorado, Crema
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

:root {
  --color-primary: #A44A4F;       /* Terracota */
  --color-primary-dark: #8A3B40;
  --color-secondary: #6A8D73;     /* Sage */
  --color-secondary-dark: #55735D;
  --color-accent: #D4A017;        /* Dorado */
  --color-rose: #C2185B;        /* Magenta logo */
  --color-bg: #FDF8F0;          /* Crema */
  --color-surface: #FFFFFF;
  --color-text: #2D3436;
  --color-muted: #636E72;
  --color-light: #FFFFFF;
  --color-dark: #1a2a4d;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --max-width: 1200px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-dark); }

/* =========================================
   HEADER
   ========================================= */
.site-header {
  background: rgba(253,248,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(106,141,115,0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.5px;
  line-height: 1;
}
.logo span { color: var(--color-rose); }
.logo-img { height: 90px; width: auto; display: block; }

/* Desktop nav */
.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: var(--transition);
}
.main-nav a:hover { color: var(--color-primary); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* =========================================
   BANNER FULL-WIDTH
   ========================================= */
.banner-full { width: 100%; background: var(--color-surface); }
.banner-full img { width: 100%; height: auto; display: block; }

/* =========================================
   HERO
   ========================================= */
.hero {
  background: linear-gradient(135deg, #A44A4F 0%, #C76B5F 50%, #D4A017 100%);
  color: var(--color-light);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.95;
  font-weight: 300;
  line-height: 1.7;
}

/* =========================================
   SECTIONS & CARDS
   ========================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad { padding: 4rem 0; }
.section-pad-sm { padding: 2.5rem 0; }

.surface-section { background: var(--color-surface); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--color-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.content-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.content-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* =========================================
   OFFER GRID (tarjetas de oferta formativa)
   ========================================= */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.offer-card {
  background: var(--color-surface);
  border: 1px solid rgba(106,141,115,0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.offer-card:hover {
  border-color: rgba(164,74,79,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.offer-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.offer-card:nth-child(odd) .offer-icon { background: rgba(164,74,79,0.08); }
.offer-card:nth-child(even) .offer-icon { background: rgba(106,141,115,0.08); }
.offer-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
}
.offer-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-light);
  box-shadow: 0 4px 14px rgba(164,74,79,0.25);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(164,74,79,0.35);
  transform: translateY(-2px);
  color: var(--color-light);
}
.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-light);
  box-shadow: 0 4px 14px rgba(106,141,115,0.25);
}
.btn-secondary:hover {
  background: var(--color-secondary-dark);
  box-shadow: 0 6px 20px rgba(106,141,115,0.35);
  transform: translateY(-2px);
  color: var(--color-light);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-light);
}

/* =========================================
   GALLERY
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* =========================================
   QUOTE / DIRECTOR SECTION
   ========================================= */
.quote-section {
  background: linear-gradient(120deg, #FFF5F5 0%, #FDF8F0 100%);
  border-left: 5px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 2.5rem;
  position: relative;
}
.quote-section::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.35;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
}
.quote-section p { position: relative; z-index: 1; }
.quote-section h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.quote-section .role {
  display: inline-block;
  background: rgba(212,160,23,0.12);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.quote-text {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
  font-style: italic;
}

/* =========================================
   TWO COLUMN LAYOUT
   ========================================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem 2rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.footer-inner h4 {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}
.footer-inner p { font-size: 0.92rem; line-height: 1.7; margin-bottom: 0.5rem; }
.footer-inner a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-inner a:hover { color: var(--color-accent); }
.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* =========================================
   ANIMATIONS (IntersectionObserver helper)
   ========================================= */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Progressive enhancement: if JS wants to animate, it can add .animate */
.reveal.animate {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(253,248,240,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(106,141,115,0.15);
    display: none;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { color: var(--color-text); width: 100%; padding: 0.5rem 0; }
  .main-nav a::after { bottom: 0; }

  .hero { padding: 3.5rem 1.25rem 4.5rem; }
  .section-pad { padding: 2.5rem 0; }
  .offer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .content-card { padding: 1.5rem; }
  .quote-section { padding: 1.75rem; }
  .logo-img { height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .content-card, .offer-card, .gallery-item, .btn { transition: none; }
}
