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

/* --- VARIABLES DE DISEÑO (Astra Child Theme) --- */
:root {
  --pc-navy: #071f45;
  --pc-blue: #0078d4;
  --pc-cyan: #00a7e1;
  --pc-light: #f4f8fb;
  --pc-mid: #dce8f2;
  --pc-text: #1d2733;
  --pc-muted: #5d6b7a;
  --pc-white: #ffffff;
  --pc-radius: 22px;
  --pc-shadow: 0 18px 45px rgba(7, 31, 69, 0.12);
  --pc-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--pc-light);
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: var(--pc-text);
  background-color: var(--pc-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--pc-navy);
  line-height: 1.25;
}

a {
  color: var(--pc-blue);
  text-decoration: none;
  transition: var(--pc-transition);
}

a:hover {
  color: var(--pc-navy);
}

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

/* --- ESTRUCTURA Y CONTENEDORES --- */
.pc-page {
  background: var(--pc-white);
}

.pc-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.pc-section {
  padding: 80px 0;
}

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

/* --- CABECERA DE LA PÁGINA (MENÚ TRANSPARENTE) --- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--pc-transition);
}

.site-header .pc-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--pc-white) !important;
}

.site-logo img {
  width: 42px;
  height: auto;
  border-radius: 10px;
  background: var(--pc-white);
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-navigation ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

.main-navigation a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-navigation a:hover,
.main-navigation a.active {
  color: var(--pc-white);
  border-bottom-color: var(--pc-cyan);
}

/* Botón Header */
.header-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--pc-white) !important;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.header-btn:hover {
  background: var(--pc-white);
  color: var(--pc-navy) !important;
  transform: translateY(-2px);
}

/* Menú Móvil */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--pc-white);
  margin: 5px 0;
  transition: var(--pc-transition);
  border-radius: 3px;
}

/* --- HERO SECTION --- */
.pc-hero {
  background: radial-gradient(circle at top right, rgba(0,167,225,0.22), transparent 38%), 
              linear-gradient(135deg, #071f45 0%, #0b3f75 48%, #006fbf 100%);
  color: var(--pc-white);
  padding: 160px 0 90px;
  overflow: hidden;
}

.pc-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.pc-headerline {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.pc-hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--pc-white);
}

.pc-hero p {
  font-size: 19px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 720px;
}

.pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pc-hero-card {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--pc-shadow);
  border-radius: 32px;
  padding: 38px;
  backdrop-filter: blur(12px);
}

.pc-logo-icon {
  width: 120px;
  height: auto;
  border-radius: 22px;
  margin-bottom: 24px;
  background: var(--pc-white);
  padding: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.pc-bullets {
  list-style: none;
  display: grid;
  gap: 14px;
}

.pc-bullets li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-bullets li::before {
  content: "✓";
  color: var(--pc-cyan);
  font-weight: 800;
  font-size: 18px;
}

/* --- BOTONES --- */
.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none !important;
  transition: var(--pc-transition);
  cursor: pointer;
  border: none;
}

.pc-btn-primary {
  background-color: var(--pc-white);
  color: var(--pc-navy) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.pc-btn-primary:hover {
  background-color: var(--pc-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.pc-btn-secondary {
  border: 1.5px solid rgba(255,255,255,0.35);
  background-color: transparent;
  color: var(--pc-white) !important;
}

.pc-btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--pc-white);
  transform: translateY(-2px);
}

/* Botones para secciones claras */
.pc-btn-dark {
  background-color: var(--pc-blue);
  color: var(--pc-white) !important;
}

.pc-btn-dark:hover {
  background-color: var(--pc-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,120,212,0.22);
}

/* --- SECCIONES Y CONTENIDOS --- */
.pc-kicker {
  color: var(--pc-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  margin-bottom: 12px;
}

.pc-section h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--pc-navy);
  margin-bottom: 16px;
}

.pc-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--pc-muted);
  max-width: 800px;
  margin-bottom: 48px;
}

/* Grid de 3 columnas */
.pc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Tarjetas */
.pc-card {
  background: var(--pc-white);
  border: 1px solid var(--pc-mid);
  border-radius: var(--pc-radius);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(7,31,69,0.04);
  transition: var(--pc-transition);
  display: flex;
  flex-direction: column;
}

.pc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(7,31,69,0.08);
  border-color: rgba(0,120,212,0.3);
}

.pc-card h3 {
  color: var(--pc-navy);
  font-size: 21px;
  margin-bottom: 14px;
  font-weight: 700;
}

.pc-card p {
  color: var(--pc-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pc-card ul {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid var(--pc-light);
  padding-top: 18px;
  display: grid;
  gap: 10px;
}

.pc-card ul li {
  font-size: 14px;
  color: var(--pc-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-card ul li::before {
  content: "→";
  color: var(--pc-blue);
  font-weight: 700;
}

/* --- STACK TÉCNICO / PÍLDORAS --- */
.pc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pc-pill {
  background: var(--pc-white);
  border: 1px solid var(--pc-mid);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--pc-navy);
  font-weight: 700;
  font-size: 14px;
  transition: var(--pc-transition);
  box-shadow: 0 4px 10px rgba(7,31,69,0.02);
}

.pc-pill:hover {
  background-color: var(--pc-blue);
  color: var(--pc-white);
  border-color: var(--pc-blue);
  transform: translateY(-1px);
}

/* --- CTA SECTION (BANNER) --- */
.pc-cta {
  background: linear-gradient(135deg, var(--pc-navy), #0b3f75 50%, var(--pc-blue));
  color: var(--pc-white);
  border-radius: 32px;
  padding: 50px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-shadow: var(--pc-shadow);
}

.pc-cta h2 {
  color: var(--pc-white);
  font-size: 34px;
  margin-bottom: 8px;
}

.pc-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  max-width: 650px;
}

.pc-cta .pc-btn {
  flex-shrink: 0;
}

/* --- PREGUNTAS FRECUENTES (FAQ) --- */
.pc-faq {
  max-width: 800px;
  margin: 0 auto;
}

.pc-faq details {
  background: var(--pc-white);
  border: 1px solid var(--pc-mid);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: var(--pc-transition);
}

.pc-faq details[open] {
  border-color: rgba(0,120,212,0.4);
  box-shadow: 0 10px 24px rgba(7,31,69,0.04);
}

.pc-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  color: var(--pc-navy);
  font-family: 'Outfit', sans-serif;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pc-faq summary::-webkit-details-marker {
  display: none;
}

.pc-faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 500;
  color: var(--pc-blue);
  transition: transform 0.2s;
}

.pc-faq details[open] summary::after {
  transform: rotate(45deg);
}

.pc-faq p {
  color: var(--pc-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 14px;
}

/* --- FORMULARIO DE CONTACTO --- */
.pc-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
}

.pc-form-container {
  background: var(--pc-white);
  border: 1px solid var(--pc-mid);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.pc-contact-form {
  display: grid;
  gap: 20px;
}

.form-group-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pc-contact-form label {
  display: block;
  font-weight: 600;
  color: var(--pc-navy);
  font-size: 14px;
  margin-bottom: 8px;
}

.pc-contact-form input[type="text"],
.pc-contact-form input[type="email"],
.pc-contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--pc-mid);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--pc-text);
  background-color: var(--pc-light);
  transition: var(--pc-transition);
}

.pc-contact-form input:focus,
.pc-contact-form textarea:focus {
  outline: none;
  border-color: var(--pc-blue);
  background-color: var(--pc-white);
  box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.12);
}

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

/* Aside de Contacto (Dark Card) */
.pc-aside-dark {
  background: linear-gradient(135deg, var(--pc-navy) 0%, #0b3f75 100%);
  border-radius: 32px;
  padding: 40px;
  color: var(--pc-white);
  box-shadow: var(--pc-shadow);
}

.pc-aside-dark h3 {
  color: var(--pc-white);
  font-size: 24px;
  margin-bottom: 24px;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.15);
  padding-bottom: 14px;
}

.contact-info-list {
  list-style: none;
  display: grid;
  gap: 24px;
}

.contact-info-list li strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pc-cyan);
  margin-bottom: 4px;
}

.contact-info-list li p,
.contact-info-list li a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
}

.contact-info-list li a:hover {
  color: var(--pc-white);
  text-decoration: underline;
}

.ai-notice-box {
  margin-top: 30px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

.ai-notice-box strong {
  color: var(--pc-white) !important;
}

/* --- SECCIÓN BLOG --- */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.post-card {
  background: var(--pc-white);
  border: 1px solid var(--pc-mid);
  border-radius: var(--pc-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: var(--pc-transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(7,31,69,0.08);
}

.post-meta {
  padding: 24px 28px 0;
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--pc-muted);
  font-weight: 600;
}

.post-category {
  color: var(--pc-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-body {
  padding: 16px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-body h3 {
  font-size: 20px;
  color: var(--pc-navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.post-body p {
  font-size: 14.5px;
  color: var(--pc-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--pc-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more-link:hover {
  color: var(--pc-navy);
}

/* --- FOOTER DE LA PÁGINA --- */
.site-footer {
  background-color: #031530;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(2, 1fr) 1.2fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--pc-white);
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-col p {
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  transition: var(--pc-transition);
}

.footer-col a:hover {
  color: var(--pc-white);
  padding-left: 4px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--pc-white) !important;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 38px;
  height: auto;
  border-radius: 8px;
  background: var(--pc-white);
  padding: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-legal-links a:hover {
  color: var(--pc-white);
}

/* --- BOTÓN SCROLL TOP & ACCESIBILIDAD --- */
#ast-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: var(--pc-blue);
  color: var(--pc-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: var(--pc-transition);
  z-index: 999;
}

#ast-scroll-top.show {
  opacity: 1;
  visibility: visible;
}

#ast-scroll-top:hover {
  background-color: var(--pc-navy);
  transform: translateY(-3px);
}

#ast-scroll-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transform: rotate(-90deg);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- RESPONSIVIDAD (TABLERS & MÓVILES) --- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 920px) {
  .pc-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .pc-hero {
    padding: 130px 0 70px;
    text-align: center;
  }
  
  .pc-hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .pc-actions {
    justify-content: center;
  }
  
  .pc-grid-3, .blog-posts-grid, .pc-contact-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  
  .pc-cta {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
  
  .pc-section {
    padding: 60px 0;
  }
  
  /* Menú Hamburguesa */
  .menu-toggle {
    display: block;
  }
  
  .main-navigation ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--pc-navy);
    flex-direction: column;
    padding: 100px 40px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .main-navigation.mobile-open ul {
    right: 0;
  }
  
  .main-navigation.mobile-open .menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .main-navigation.mobile-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  .main-navigation.mobile-open .menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  .header-btn {
    display: none; /* Ocultar en móvil para simplificar, se puede duplicar en el menú si es necesario */
  }
}

@media (max-width: 576px) {
  .form-group-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pc-form-container {
    padding: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
