/* ---------- CSS RESET & VARIABLES ---------- */
:root {
  /* Colors based on SVG corporate palette */
  --bg-color: #ffffff;
  --bg-light: #fefbf5;
  --bg-dark: #fff3d3; /* Cream/light yellow */
  
  --primary-color: #00319c; /* Deep Blue from SVG */
  --primary-hover: #00226e;
  
  --secondary-color: #ffd03a; /* Ocaso Yellow from SVG */
  --secondary-hover: #f1bf24;
  
  --accent-color: #ff9d7c; /* Soft coral/salmon */
  --accent-dark: #df9b7b;
  
  --text-main: #333333;
  --text-dark: #78524f; /* Brownish dark */
  --text-light: #666666;
  
  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  
  /* Settings */
  --border-radius-sm: 8px;
  --border-radius: 12px;
  --border-radius-lg: 24px;
  --transition: all 0.3s ease;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 15px 35px rgba(0, 49, 156, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px; /* Compensa la altura de la nueva barra de navegación */
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.25;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.text-center { text-align: center; }
.justify-center { display: flex; justify-content: center; align-items: center; gap: 15px; }
.text-white { color: #ffffff !important; }
.bg-light { background-color: var(--bg-light); }
.bg-accent { background-color: var(--primary-color); }

/* ---------- TYPOGRAPHY & TAGS ---------- */
.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 50px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 208, 58, 0.4);
  color: var(--primary-hover);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--bg-dark);
  color: var(--primary-color);
}

.btn-full {
  width: 100%;
}

/* ---------- TOP BAR ---------- */
.top-bar {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-contact {
  display: flex;
  gap: 20px;
}

.top-bar-contact a {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
}

.top-bar-contact a:hover {
  color: var(--accent-color);
}

/* ---------- NAVBAR ---------- */
.navbar {
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

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

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

.logo-img {
  height: 110px;
  width: auto;
  object-fit: contain;
  margin-top: 8px; /* Aire superior extra */
  margin-bottom: 15px; /* Da más aire hasta la franja crema */
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 25px; /* Desplaza el menú hacia abajo para alinearse con 'ASEGURA COMO QUIERAS' */
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-links a.btn-primary {
  color: var(--primary-color);
}

.nav-links a.btn-primary:hover {
  color: var(--primary-hover);
}

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

/* ---------- HERO ---------- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  opacity: 0.5;
  z-index: 0;
  filter: blur(60px);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 1.1rem;
  font-family: var(--font-body);
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: #fff;
  padding: 20px 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 4px solid var(--secondary-color);
}

.hero-badge-domain {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.hero-badge-domain i {
  color: var(--secondary-color);
  font-size: 1.4rem;
}

.hero-badge-claim {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
  max-width: 250px;
  line-height: 1.4;
}

/* ---------- SERVICES ROW ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
  border-top-color: var(--accent-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 0.95rem;
}

.service-link:hover {
  gap: 10px;
}

.services-disclaimer {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
  margin-top: 40px;
}

/* ---------- HIGHLIGHT SECTION ---------- */
.highlight-section {
  padding: 100px 0;
  background-color: var(--primary-color);
  background-image: 
    url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1440 600' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0,600 C 0,600 0,200 0,200 C 205.7,257.1 411.4,314.2 617,314 C 822.5,313.7 1028.2,256.2 1253,243 C 1477.7,229.7 1721.4,260.5 1980,291 C 1980,291 1980,600 1980,600 Z' fill='%23ffd03a' fill-opacity='0.08'%3E%3C/path%3E%3Cpath d='M 0,600 C 0,600 0,400 0,400 C 236.5,436.5 473.1,473.1 694,460 C 914.8,446.8 1119.9,384 1354,360 C 1588,336 1850.8,350.8 1980,365 C 1980,365 1980,600 1980,600 Z' fill='%23ff9d7c' fill-opacity='0.1'%3E%3C/path%3E%3C/svg%3E"), 
    linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.highlight-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  padding: 60px;
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(5px);
}

.highlight-image {
  border-radius: var(--border-radius);
  width: 100%;
}

.highlight-features {
  margin: 30px 0;
}

.highlight-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}

.highlight-features i {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-top: 2px;
}

/* ---------- VALUES GRID ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-item {
  text-align: center;
}

.value-icon {
  font-size: 2.5rem;
  color: var(--accent-dark);
  margin-bottom: 15px;
}

.value-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.value-item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ---------- PROCESS TIMELINE ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 50px;
  right: 50px;
  height: 2px;
  background-color: rgba(0, 49, 156, 0.1);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  border: 5px solid var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 auto 20px;
  font-weight: 700;
  padding-bottom: 4px; /* Empuja ligeramente el número hacia arriba compensando la fuente */
}

.step h4 { margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-light); }

/* ---------- ABOUT -------- */
.about-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 20px;
}

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

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
}

.stat i {
  font-size: 1.8rem;
  color: var(--accent-color);
}

.about-portrait {
  border-radius: var(--border-radius-lg);
  box-shadow: -20px -20px 0 var(--bg-dark);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: var(--border-radius);
  color: #fff;
}

.testimonial-stars {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.testimonial-card p {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.85rem;
}

.testimonials-note {
  margin-top: 30px;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---------- FAQ ---------- */
.faq-container {
  max-width: 800px;
}

.accordion-item {
  border-bottom: 1px solid #eee;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover { color: var(--primary-color); }
.accordion-header i { transition: transform 0.3s ease; }
.accordion-header.active i { transform: rotate(180deg); color: var(--primary-color); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding-bottom: 20px;
  color: var(--text-light);
}

/* ---------- CONTACT FORM ---------- */
.cta-banner { padding: 60px 0; }
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-details { margin-top: 40px; }
.contact-details li {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact-details strong { display: block; color: var(--text-dark); margin-bottom: 2px;}
.contact-details span, .contact-details a { color: var(--text-light); font-size: 0.95rem; }
.contact-details a:hover { color: var(--primary-color); }

.contact-form-wrapper {
  background-color: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 49, 156, 0.1);
}

.form-privacy { margin: 25px 0; }
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.checkbox-container input { width: auto; margin-top: 4px; }

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: var(--border-radius-sm);
  background-color: #e6f7ea;
  color: #1a7b3c;
  font-weight: 500;
  text-align: center;
}
.hidden { display: none; }

/* ---------- FOOTER ---------- */
.footer {
  background-color: #222;
  color: #aaa;
  padding: 60px 0 20px;
  font-size: 0.9rem;
}

.footer-title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-note {
  border-bottom: 1px solid #444;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.footer-note p { font-size: 0.85rem; line-height: 1.8; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-details strong { color: #ddd; }
.footer-details a { color: #aaa; }
.footer-details a:hover { color: #fff; }

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a { color: #aaa; }
.footer-links a:hover { color: var(--accent-dark); }

.footer-copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.8rem;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 991px) {
  .hero-container, .highlight-container, .about-container, .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-title { font-size: 2.8rem; }
  .highlight-container { padding: 40px 30px; }
  
  .values-grid, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .values-grid .value-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 450px;
    margin: 0 auto;
  }
  .process-steps::before { display: none; }
  
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .top-bar-text { display: none; }
  .top-bar-content { justify-content: center; }
  .top-bar-contact { 
    flex-direction: column; 
    align-items: center; 
    gap: 8px; 
  }
  .top-bar-contact a { white-space: nowrap; }
  
  .menu-toggle { display: block; }
  .nav-links {
    padding-top: 20px; /* Restaura en móvil */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease;
  }
  
  .nav-links.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  
  .hero { text-align: center; padding: 40px 0; }
  .hero-description { margin: 0 auto 30px; }
  .hero-ctas { justify-content: center; }
  .hero-badge { left: 5px; bottom: 5px; right: 5px; justify-content: center; }
  
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .footer-bottom { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 10px; }
}
