/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* ============================================
     PALETA ACTUALIZADA CON TU COLOR #163F72
     ============================================ */
  --primary-dark: #163F72;     /* Tu color del logo - más oscuro */
  --primary-color: #2A5699;    /* Versión un poco más clara */

  --accent-color: #FF4759;
  --accent-light: #FF6B7A;
  --accent-dark: #E03E4E;

  --btn-primary: #163F72;      /* Botones con tu color del logo */
  --btn-primary-hover: #0D2B5A;/* Color más oscuro al hover */
  --btn-secondary: transparent;
  --btn-secondary-border: #163F72; /* Contorno con tu color azul */

  --dark-color: #1A1A2E;
  --dark-gray: #2D3047;
  --gray-color: #6B7280;
  --gray-light: #E5E7EB;
  --light-color: #F9FAFB;
  --white: #FFFFFF;

  --success-color: #10B981;
  --error-color: #EF4444;

  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Manrope', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-full: 50%;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  color: var(--dark-color);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

section { padding: 100px 0; }

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
  font-size: 1.125rem;
  line-height: 1.7;
}

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

/* ============================================
   BOTONES MEJORADOS PARA HERO
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 10px;
  font-family: var(--font-primary);
  letter-spacing: 0.01em;
}

.btn-primary {
  background-color: var(--btn-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--btn-primary);
  position: relative;
  z-index: 10;
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 10;
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--btn-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--white);
}

.btn-large { 
  padding: 18px 40px; 
  font-size: 1.125rem;
  min-width: 220px;
}
.btn-block { width: 100%; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(229,231,235,0.8);
  box-shadow: 0 4px 6px -1px rgba(22,63,114,0.05);
  transition: var(--transition);
}

.header.scrolled {
  background: linear-gradient(135deg, rgba(255,255,255,0.99) 0%, rgba(248,250,252,0.99) 100%);
  box-shadow: 0 6px 10px -1px rgba(22,63,114,0.08);
  border-bottom-color: rgba(229,231,235,0.9);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo { display: flex; align-items: center; transition: var(--transition); }

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

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

.footer-logo {
  filter: brightness(0) invert(1);
  height: 70px;
  width: auto;
  transition: var(--transition);
}

.footer-brand .logo:hover .footer-logo {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Nav */
.nav-menu { display: flex; gap: 40px; }

.nav-link {
  font-weight: 500;
  color: var(--dark-gray);
  position: relative;
  padding: 8px 0;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.nav-link:hover, .nav-link.active { color: var(--accent-color); }

.nav-link.active::after{
  content:'';
  position:absolute;
  bottom:0; left:0;
  width:100%;
  height:2px;
  background-color: var(--accent-color);
  border-radius: 1px;
}

.nav-actions { display:flex; align-items:center; gap:24px; }

.menu-toggle{
  display:none;
  background:none;
  border:none;
  font-size:1.5rem;
  color: var(--dark-color);
  cursor:pointer;
  padding:8px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.menu-toggle:hover{ background-color: var(--gray-light); }

/* ============================================
   HERO MEJORADO - BOTONES VISIBLES
   ============================================ */
.hero{
  padding-top: 160px;
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;

  background-image: url("../images/heroimagen.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Overlay mejorado para contraste */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.65) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.hero .container{
  position: relative;
  z-index: 2;
  display: block;
  padding-top: 20px;
}

.hero-content{ 
  max-width: 720px;
  position: relative;
  z-index: 3;
}

.hero-title{
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

.highlight{
  color: var(--accent-color);
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.highlight::after{
  content:'';
  position:absolute;
  bottom:5px; left:0;
  width:100%;
  height:8px;
  background-color: rgba(255,71,89,0.35);
  z-index:-1;
  border-radius:4px;
}

.hero-subtitle{
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.98);
  max-width: 90%;
  line-height: 1.7;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-weight: 400;
}

.hero-actions{ 
  display:flex; 
  gap: 25px; 
  flex-wrap:wrap;
  margin-top: 40px;
  position: relative;
  z-index: 4;
}

/* Estilo especial para botones en hero */
.hero-actions .btn {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-actions .btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

/* Ya no usamos la imagen como columna */
.hero-image{ display:none; }
.hero-img{ display:none; }

/* Section Header */
.section-header { text-align:center; margin-bottom:80px; }

.section-title{
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title::after{
  content:'';
  position:absolute;
  bottom:-15px;
  left:50%;
  transform: translateX(-50%);
  width:60px;
  height:4px;
  background-color: var(--accent-color);
  border-radius:2px;
}

.section-subtitle{
  font-size: 1.25rem;
  color: var(--gray-color);
  max-width: 600px;
  margin: 2rem auto 0;
  line-height: 1.7;
}

/* Services */
.services-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap:32px;
}

.service-card{
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 48px 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--gray-light);
  position: relative;
  overflow: hidden;
}

.service-card::before{
  content:'';
  position:absolute;
  top:0; left:0;
  width:100%;
  height:4px;
  background: linear-gradient(90deg, var(--primary-dark), var(--accent-color));
  opacity:0;
  transition: var(--transition);
}

.service-card:hover{
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before{ opacity:1; }

.service-icon{
  width:80px;
  height:80px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  border-radius: var(--border-radius-full);
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto 32px;
  color: var(--white);
  font-size:1.75rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.service-card:hover .service-icon{ transform: scale(1.1); }

.service-title{ font-size:1.5rem; margin-bottom:20px; color: var(--dark-color); }
.service-description{ margin-bottom:24px; color: var(--gray-color); font-size:1.0625rem; line-height:1.7; }

.service-features{ list-style:none; text-align:left; margin-top:24px; }
.service-features li{
  padding:10px 0;
  color: var(--dark-gray);
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
}

.service-features li::before{
  content:'✓';
  position:absolute;
  left:0;
  color: var(--accent-color);
  font-weight:bold;
  font-size:1.1rem;
}

/* About */
.about{ background-color: var(--light-color); position:relative; }
.about::before{
  content:'';
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  background: linear-gradient(135deg, rgba(22,63,114,0.02) 0%, rgba(255,71,89,0.02) 100%);
  z-index:-1;
}

.about-content{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:80px;
  align-items:center;
}

.about-features{ margin-top:40px; }

.feature{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
  color: var(--dark-color);
  font-weight:500;
  font-size:1.0625rem;
}

.feature i{
  color: var(--accent-color);
  font-size:1.25rem;
  flex-shrink:0;
}

.about-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:32px;
  text-align:center;
}

.stat{
  background-color: var(--white);
  padding:40px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.stat:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-color);
}

.stat-number{
  display:block;
  font-size:3.5rem;
  font-weight:800;
  color: var(--accent-color);
  line-height:1;
  margin-bottom:12px;
  font-family: var(--font-secondary);
}

.stat-label{
  font-size:1rem;
  color: var(--gray-color);
  font-weight:500;
  letter-spacing:0.02em;
}

/* Contact */
.contact-content{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:80px;
}

.contact-method{
  display:flex;
  gap:24px;
  margin-bottom:48px;
  align-items:flex-start;
}

.contact-icon{
  width:64px;
  height:64px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  border-radius: var(--border-radius-full);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--white);
  font-size:1.5rem;
  flex-shrink:0;
  box-shadow: var(--shadow-md);
}

.contact-details h3{
  margin-bottom:12px;
  font-size:1.5rem;
  color: var(--dark-color);
}

.contact-link{
  color: var(--accent-color);
  font-weight:500;
  font-size:1.125rem;
  display: inline-block;
  margin-top: 5px;
}

.contact-link:hover{
  color: var(--accent-dark);
  text-decoration: underline;
}

.whatsapp-note {
  font-size: 0.9rem; 
  color: var(--gray-color); 
  margin-top: 5px;
}

.social-links{ display:flex; flex-direction:column; gap:12px; }

.social-link{
  display:flex;
  align-items:center;
  gap:12px;
  color: var(--gray-color);
  font-size:1.0625rem;
  transition: var(--transition);
}

.social-link:hover{
  color: var(--accent-color);
  transform: translateX(4px);
}

.social-link i{ width:20px; text-align:center; }

.contact-form-container{
  background-color: var(--white);
  padding:48px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-light);
}

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

.form-group label{
  display:block;
  margin-bottom:10px;
  font-weight:600;
  color: var(--dark-color);
  font-size:1.0625rem;
}

.form-group input,
.form-group select,
.form-group textarea{
  width:100%;
  padding:16px;
  border:1px solid var(--gray-light);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-size:1rem;
  transition: var(--transition);
  background-color: var(--light-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
  outline:none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255,71,89,0.1);
  background-color: var(--white);
}

/* Footer */
.footer{
  background-color: var(--primary-dark);
  color: var(--white);
  padding-top: 100px;
  padding-bottom: 60px;
}

.footer-content{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap:48px;
  margin-bottom:80px;
}

.footer-description{
  color: rgba(255,255,255,0.7);
  margin-top:20px;
  font-size:1.0625rem;
  line-height:1.7;
}

.footer-title{
  color: var(--white);
  font-size:1.25rem;
  margin-bottom:28px;
  position:relative;
  padding-bottom:12px;
}

.footer-title::after{
  content:'';
  position:absolute;
  bottom:0; left:0;
  width:40px;
  height:3px;
  background-color: var(--accent-color);
  border-radius:2px;
}

.footer-links{ display:flex; flex-direction:column; gap:16px; }
.footer-link{ color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-link:hover{ color: var(--accent-color); padding-left:8px; }

.footer-services{ display:flex; flex-direction:column; gap:16px; }
.footer-service{ color: rgba(255,255,255,0.7); }

.contact-info-footer p{
  color: rgba(255,255,255,0.7);
  margin-bottom:16px;
  display:flex;
  align-items:center;
  gap:12px;
  font-size:1.0625rem;
}

.footer-social{ display:flex; gap:16px; margin-top:24px; }

.social-icon{
  width:44px;
  height:44px;
  background-color: rgba(255,255,255,0.1);
  border-radius: var(--border-radius-full);
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--white);
  font-size:1.25rem;
  transition: var(--transition);
}

.whatsapp-icon{ background-color:#25d366 !important; }
.whatsapp-icon:hover{ background-color:#128C7E !important; }

.social-icon:not(.whatsapp-icon):hover{
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top:40px;
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:24px;
}

.copyright{ color: rgba(255,255,255,0.6); font-size:1rem; }

.footer-legal{ display:flex; gap:24px; }
.legal-link{ color: rgba(255,255,255,0.6); transition: var(--transition); }
.legal-link:hover{ color: var(--accent-color); }

/* WhatsApp Float */
.whatsapp-float{
  position:fixed;
  width:60px;
  height:60px;
  bottom:40px;
  right:40px;
  background-color:#25d366;
  color:white;
  border-radius:50%;
  text-align:center;
  font-size:30px;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover{
  background-color:#128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37,211,102,0.6);
  color:white;
}

.whatsapp-float i{ margin-top:2px; }

@keyframes pulse-whatsapp{
  0%{ box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
  70%{ box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (992px - 1200px) */
@media (max-width: 1200px){
  h1{ font-size:3rem; }
  h2{ font-size:2.25rem; }

  .hero-title { font-size: 3rem; }
  
  .logo-img{ height:70px; }
  .footer-logo{ height:65px; }

  .whatsapp-float{
    width:55px;
    height:55px;
    bottom:30px;
    right:30px;
    font-size:28px;
  }
}

/* Tablet pequeña (768px - 992px) */
@media (max-width: 992px){
  h1{ font-size:2.75rem; }
  h2{ font-size:2rem; }

  .hero{ 
    padding-top: 140px; 
    padding-bottom: 80px;
    min-height: auto;
    background-attachment: scroll;
  }
  
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.2rem; }
  
  .hero-actions{
    justify-content: center;
  }

  .logo-img{ height:65px; }
  .footer-logo{ height:60px; }

  .about-content{ grid-template-columns:1fr; gap:60px; }
  .contact-content{ grid-template-columns:1fr; gap:60px; }
  .services-grid{ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

/* Móvil grande (576px - 768px) */
@media (max-width: 768px){
  .nav-menu{
    position:fixed;
    top:90px;
    left:0;
    width:100%;
    background-color: var(--white);
    flex-direction: column;
    padding:32px;
    box-shadow: var(--shadow-xl);
    transform: translateY(-100%);
    opacity:0;
    visibility:hidden;
    transition: var(--transition);
    z-index:999;
    gap:24px;
    border-top: 1px solid var(--gray-light);
  }

  .nav-menu.active{
    transform: translateY(0);
    opacity:1;
    visibility: visible;
  }

  .menu-toggle{ display:block; }
  .nav-actions .btn-primary{ display:none; }

  .hero-title{ 
    font-size:2.2rem; 
    text-align: center;
  }
  
  .hero-subtitle { 
    font-size: 1.1rem; 
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions{
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .hero-actions .btn{
    width:100%;
    max-width: 300px;
    min-width: auto;
  }

  .logo-img{ height:60px; }
  .footer-logo{ height:55px; }

  .navbar{ padding: 15px 0; }

  .about-stats{ grid-template-columns:1fr; gap:24px; }

  .footer-bottom{
    flex-direction: column;
    text-align:center;
    gap:20px;
  }

  .footer-legal{ justify-content:center; }
  section{ padding:80px 0; }

  .whatsapp-float{
    width:50px;
    height:50px;
    bottom:20px;
    right:20px;
    font-size:25px;
  }
}

/* Móvil pequeño (400px - 576px) */
@media (max-width: 576px){
  .container{ padding:0 20px; }
  h1{ font-size:2.25rem; }
  h2{ font-size:1.75rem; }
  h3{ font-size:1.5rem; }

  .hero{ 
    padding-top: 120px; 
    padding-bottom: 60px;
  }
  
  .hero-title { font-size: 1.9rem; }
  .hero-subtitle { font-size: 1rem; }

  .service-card, .contact-form-container{ padding:32px 24px; }
  .btn-large{ padding:16px 32px; font-size:1rem; }

  .footer-content{ grid-template-columns:1fr; gap:40px; }

  .logo-img{ height:55px; min-height:55px; }
  .footer-logo{ height:50px; }

  .whatsapp-float{
    width:45px;
    height:45px;
    bottom:15px;
    right:15px;
    font-size:22px;
  }
}

/* Móvil muy pequeño (< 400px) */
@media (max-width: 400px){
  .hero-title { font-size: 1.7rem; }
  .logo-img{ height:50px; min-height:50px; }
  .navbar{ padding:12px 0; }
  .footer-logo{ height:45px; }

  .whatsapp-float{
    width:40px;
    height:40px;
    bottom:10px;
    right:10px;
    font-size:20px;
  }
}

/* Animations */
@keyframes fadeInUp{
  from{ opacity:0; transform: translateY(30px); }
  to{ opacity:1; transform: translateY(0); }
}
.animate-in{ animation: fadeInUp 0.6s ease-out forwards; }

/* Form select arrow */
select{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 16px center;
  background-size:16px;
  padding-right:48px;
}

textarea{ resize: vertical; min-height:120px; }

/* Scrollbar */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background: var(--light-color); }
::-webkit-scrollbar-thumb{ background: var(--primary-color); border-radius:5px; }
::-webkit-scrollbar-thumb:hover{ background: var(--primary-dark); }
