/* =========================================
   VARIABLES Y MAQUETACIÓN BASE
   ========================================= */
:root {
    --primary: #1f3c88;
    --primary-dark: #14285a;
    --accent: #e63946;
    --white: #ffffff;
    --light-bg: #f4f7ff;
    --text-dark: #1a1a1a;
    --text-gray: #555;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --grad-pro: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { background-color: var(--light-bg); color: var(--text-dark); }

/* ANIMACIONES */
.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* HEADER */
.header {
    padding: 15px 8%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px);
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 48px; transition: transform 0.3s; }
.logo:hover img { transform: rotate(-5deg) scale(1.1); }
.logo span { font-weight: 800; font-size: 24px; color: var(--primary); }

.nav { display: flex; gap: 30px; align-items: center; }
.nav a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 14px; transition: 0.3s; }
.nav a:hover:not(.btn-nav) { color: var(--accent); }
.btn-nav { background: var(--accent); color: white !important; padding: 12px 28px; border-radius: 50px; box-shadow: 0 8px 20px rgba(230, 57, 70, 0.2); }

/* HERO */
/* =========================================
   HERO SECTION (CORREGIDA)
   ========================================= */
.hero { 
    min-height: 85vh; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 80px 8%; /* Aumentado padding superior/inferior */
    position: relative; 
    background: #fff; 
    overflow: hidden; 
}

.hero-content { 
    flex: 1; 
    z-index: 10; 
    max-width: 650px; 
}

.hero-content h1 { 
    font-size: 4rem; 
    line-height: 1.2; /* Aumentado de 1.1 a 1.2 para separar las líneas del título */
    color: var(--primary); 
    font-weight: 800; 
    margin-bottom: 35px; /* Aumentado para separar el título del párrafo */
}

.hero-content p { 
    font-size: 1.2rem; 
    color: var(--text-gray); 
    margin-bottom: 45px; /* Aumentado para separar el párrafo del botón */
    line-height: 1.7; /* Más espacio entre líneas de lectura */
    max-width: 90%; 
}

.btn-main { display: inline-block; padding: 20px 45px; background: var(--primary); color: white; text-decoration: none; border-radius: 50px; font-weight: 700; transition: var(--transition); box-shadow: 0 10px 25px rgba(31,60,136,0.2); }
.btn-main:hover { background: var(--accent); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(230,57,70,0.3); }

/* TARJETAS PREMIUM (SERVICIOS Y POR QUÉ) */
.services, .why-us { padding: 100px 8%; text-align: center; }
.section-title { font-size: 3rem; color: var(--primary); margin-bottom: 20px; font-weight: 800; }
.section-title::after { content: ""; display: block; width: 60px; height: 5px; background: var(--accent); margin: 15px auto; border-radius: 10px; }

.services-grid, .why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }

.service-card, .why-card {
    background: white; padding: 50px 30px; border-radius: 30px; border: 1px solid #eee;
    position: relative; z-index: 1; overflow: hidden; transition: var(--transition);
}
.service-card::before, .why-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--grad-pro); opacity: 0; z-index: -1; transition: var(--transition);
}
.service-card:hover, .why-card:hover { transform: translateY(-15px); color: white; border-color: transparent; box-shadow: 0 20px 40px rgba(31,60,136,0.1); }
.service-card:hover::before, .why-card:hover::before { opacity: 1; }
.service-card i, .why-card i { font-size: 45px; color: var(--accent); margin-bottom: 20px; transition: 0.3s; }
.service-card:hover i, .why-card:hover i { color: white; transform: scale(1.1) rotate(10deg); }

/* PROCESO (LÍNEA DE TIEMPO) */
.process { padding: 100px 8%; text-align: center; background: white; }
.process-container { display: flex; justify-content: space-between; margin-top: 80px; position: relative; }
.process-container::before { content: ''; position: absolute; top: 45px; left: 10%; right: 10%; height: 2px; background: #e0e0e0; z-index: 1; }

.process-item { flex: 1; position: relative; z-index: 5; }
.step-circle {
    width: 90px; height: 90px; background: white; border: 2px solid #e0e0e0; border-radius: 50%;
    margin: 0 auto 20px; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: var(--primary); transition: var(--transition); position: relative;
}
.step-num { position: absolute; top: -5px; right: -5px; width: 30px; height: 30px; background: var(--accent); color: white; border-radius: 50%; font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.process-item:hover .step-circle { background: var(--primary); color: white; border-color: var(--primary); transform: scale(1.1); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.process-item h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; transition: 0.3s; }
.process-item:hover h3 { color: var(--accent); }

/* CONTACTO (HABLAMOS) */
.contact { padding: 100px 8%; background: var(--primary-dark); }
.contact-container { max-width: 1100px; margin: 0 auto; background: white; border-radius: 30px; display: grid; grid-template-columns: 1fr 1.3fr; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.3); }
.contact-info { padding: 60px; background: var(--primary); color: white; }
.contact-info h2 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.detail-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 1.1rem; }
.detail-item i { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); }

.contact-form { padding: 60px; display: flex; flex-direction: column; gap: 15px; }
.form-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.contact-form input, .contact-form textarea { padding: 15px 20px; border-radius: 12px; border: 1px solid #eee; background: #f8fafc; font-size: 16px; outline: none; transition: 0.3s; }
.contact-form input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(31,60,136,0.05); }

.btn-submit { padding: 18px; background: var(--accent); color: white; border: none; border-radius: 12px; font-weight: 800; font-size: 18px; cursor: pointer; transition: 0.3s; margin-top: 10px; }
.btn-submit:hover { background: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* WHATSAPP */
.whatsapp-btn { position: fixed; right: 30px; bottom: 30px; width: 60px; height: 60px; background: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; z-index: 1000; box-shadow: 0 10px 20px rgba(37,211,102,0.3); transition: 0.3s; text-decoration: none; }
.whatsapp-btn:hover { transform: scale(1.1) rotate(10deg); }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding-top: 100px; }
    .hero-content h1 { font-size: 2.8rem; }
    .process-container { flex-direction: column; gap: 40px; }
    .process-container::before { display: none; }
    .contact-container { grid-template-columns: 1fr; }
    .contact-info, .contact-form { padding: 40px 30px; }
    .form-group { grid-template-columns: 1fr; }
    .nav { display: none; }
}