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

:root {
  --primary: #1a3a5c;
  --primary-dark: #132d47;
  --accent: #5ba3d9;
  --text: #1a2535;
  --text-light: #6b7280;
  --bg: #f8fafc;
  --bg-alt: #e8f2fb;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

h1, h2, h3 { font-family: 'Lora', serif; line-height: 1.3; }

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(13,25,40,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
}

.logo {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.nav-links a:hover { color: #ffffff; }

.btn-nav {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.btn-nav:hover { background: #4a8fc2 !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--white);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  transition: all 0.2s;
}

.btn-secondary:hover { background: var(--primary); color: var(--white); }

.full-width { width: 100%; text-align: center; }

/* === HERO === */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(135deg, #eef3f9 0%, #dbeeff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.hero-tag {
  display: inline-block;
  background: rgba(26,58,92,0.1);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-text h1 { font-size: 2.8rem; color: var(--text); margin-bottom: 20px; }

.hero-sub { color: var(--text-light); font-size: 1.05rem; margin-bottom: 36px; max-width: 480px; }

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* === PREGUNTAS DISPARADORAS === */
.preguntas {
  background: var(--primary);
  padding: 60px 0 0;
}

.preguntas .section-tag { margin-bottom: 32px; }

.carousel {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 30, 0.62);
}

.slide-question {
  position: relative;
  z-index: 1;
  color: white;
  font-family: 'Lora', serif;
  font-size: 1.9rem;
  text-align: center;
  max-width: 720px;
  padding: 0 64px;
  line-height: 1.5;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}

.carousel-btn:hover { background: rgba(255,255,255,0.28); }
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

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

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.preguntas-cta {
  text-align: center;
  padding: 48px 0;
}

.preguntas-cta p {
  color: var(--white);
  margin-bottom: 28px;
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  font-style: italic;
  padding-top: 20px;
  border-top: 2px solid var(--accent);
  display: inline-block;
}

.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
}

.btn-accent:hover { background: #4a8fc2; transform: translateY(-1px); }

/* === SOBRE MÍ === */
.sobre-mi { padding: 96px 0; background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: center;
  gap: 64px;
}

.about-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  filter: brightness(1.02) contrast(1.03) saturate(0.95);
  transition: transform 0.3s;
}

.about-img:hover { transform: scale(1.01); }

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-tag.center { display: block; text-align: center; }

.about-text h2 { font-size: 2rem; margin-bottom: 16px; }

.about-text p { color: var(--text-light); margin-bottom: 14px; }

.credentials {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credentials li { font-size: 0.9rem; color: var(--text-light); }

/* === SERVICIOS === */
.servicios { padding: 96px 0; background: var(--bg-alt); }

.section-title { font-size: 2rem; text-align: center; margin-bottom: 48px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.card:hover { transform: translateY(-4px); }

.card-icon { font-size: 2rem; margin-bottom: 16px; }

.card h3 { font-size: 1.1rem; margin-bottom: 10px; }

.card p { color: var(--text-light); font-size: 0.9rem; }

/* === CÓMO TRABAJO === */
.como-trabajo { padding: 96px 0; background: var(--white); }

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 16px;
}

.step {
  text-align: center;
  max-width: 180px;
  padding: 16px;
}

.step-num {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 auto 16px;
}

.step h3 { font-size: 1rem; margin-bottom: 8px; }

.step p { font-size: 0.85rem; color: var(--text-light); }

.step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  min-width: 40px;
  max-width: 80px;
  margin-bottom: 32px;
}

/* === FAQ === */
.faq { padding: 96px 0; background: var(--bg); }

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

.faq-answer p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.75;
  border-top: 1px solid #e8f2fb;
  padding-top: 16px;
}

/* === CONTACTO === */
.contacto { padding: 96px 0; background: var(--bg-alt); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { font-size: 2rem; margin-bottom: 12px; }

.contact-info > p { color: var(--text-light); margin-bottom: 32px; }

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li { font-size: 0.95rem; color: var(--text-light); }

.contact-list a { color: var(--primary); }
.contact-list a:hover { text-decoration: underline; }

/* === FORM === */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #c8d9ec;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 12px;
}

.form-success {
  background: #dbeeff;
  color: var(--primary);
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

.hidden { display: none; }

/* === FOOTER === */
.footer {
  background: var(--text);
  color: #ccc;
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-inner p { font-size: 0.85rem; }
.footer-note { color: #888; }

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ig-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.footer-ig {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-ig:hover { color: #fff; }
.footer-ig:hover .ig-icon { opacity: 0.85; }

.li-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #0077b5;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-li:hover { color: #fff; }
.footer-li:hover .li-icon { opacity: 0.85; }

.credentials .contact-social a { color: var(--primary); }
.credentials .contact-social a:hover { text-decoration: underline; }

.contact-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === WHATSAPP FLOTANTE === */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #25d366;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 104px; left: 0; right: 0; background: rgba(13,25,40,0.97); padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.08); gap: 20px; }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }

  .hero-inner,
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }

  .hero-text h1 { font-size: 2rem; }
  .hero-image { order: -1; }
  .hero-img { height: 280px; }
  .about-img { height: 280px; }

  .steps { flex-direction: column; align-items: center; }
  .step-line { width: 2px; height: 40px; min-width: unset; max-width: unset; margin-bottom: 0; background: linear-gradient(180deg, var(--primary), var(--accent)); }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { align-items: center; }

  .carousel { height: 340px; }
  .slide-question { font-size: 1.25rem; padding: 0 56px; }
  .carousel-btn { width: 36px; height: 36px; }
  .carousel-prev { left: 12px; }
  .carousel-next { right: 12px; }
}
