/* --- VARIABLES y RESET BÁSICO --- */
:root {
    --color-primary: #5A47D4; /* Morado base */
    --color-secondary: #00C6FF; /* Azul/Turquesa base */
    --color-text-dark: #1E1E1E;
    --color-text-light: #555555;
    --color-bg-white: #FFFFFF;
    --gradient-main: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    --font-main: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    line-height: 1.6;
}

/* --- ESTILOS DE TIPOGRAFÍA Y ENCABEZADOS --- */
h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    font-weight: 600;
}

p {
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: var(--color-text-dark);
    transition: color 0.3s;
}

/* --- UTILIDADES Y GRADIENTES --- */
.icon-gradient {
    font-size: 2.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    text-align: center;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--color-bg-white);
    border: none;
}

.btn-secondary {
    background: none;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 8px 20px;
}

/* --- HEADER Y NAV --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.0rem;
    font-weight: 400;
}

.logo img {
    height: 90px; /* Tamaño del logo */
    margin-right: 10px;
}

.nav a {
    margin-left: 25px;
    font-size: 1.0rem;
}

.nav a:hover {
  color: var(--color-primary);
  text-decoration-line: underline;       /* activa el subrayado */
  text-decoration-color: #00C6FF;         /* color de la línea */
  text-decoration-thickness: 4px;        /* grosor del subrayado */
  text-underline-offset: 6px; 
}

.cta-nav {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 8px 15px;
    border-radius: 5px;
}

/* --- HERO SECTION --- */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 5%;
    min-height: 450px;
}

.hero-content {
    flex: 1;
    max-width: 50%;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 80%; /* Asegura que la ilustración no sea demasiado grande */
    height: auto;
}

/* --- SECTIONS GENERALES --- */
section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* --- SERVICES SECTION --- */
.services-section {
    background-color: #f8f8f8; /* Un sutil gris para diferenciar */
}

.services-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background-color: var(--color-bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.service-icon {
  width: 200px;          /* ajusta el tamaño a tu gusto */
  height: auto;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

/* efecto al pasar el mouse */
.service-card:hover .service-icon {
  transform: scale(1.1);
}
/* --- WHY CHOOSE SECTION --- */
.why-choose-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background-color: #f8f8f8; /* Un sutil gris para diferenciar */
}

.why-choose-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.why-choose-section .subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 4rem; /* Espacio antes de las cards */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.advantages-grid {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 25px;
   margin-bottom: 50px; /* Espacio antes de la barra de métricas */
}

.advantage-card {
   background-color: var(--color-bg-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-8px); /* Efecto de "levantar" al pasar el mouse */
}

.service-icon1 {
  width: 200px;          /* ajusta el tamaño a tu gusto */
  height: auto;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

/* efecto al pasar el mouse */
.advantage-card:hover .service-icon1 {
  transform: scale(1.1);
}
.advantage-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block; /* Asegura que el ícono ocupe su propia línea */
}

.advantage-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.advantage-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.metrics-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Permite que los tags se ajusten en móvil */
    margin-top: 30px;
}

.metric-tag {
    background: var(--gradient-main); /* Usa el gradiente principal */
    color: var(--color-bg-white);
    padding: 10px 20px;
    border-radius: 20px; /* Forma de píldora */
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap; /* Evita que el texto se rompa */
}

/* --- CLIENTS SECTION --- */
.client-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-placeholder {
    width: 100px;
    height: 40px;
    background-color: #EEEEEE;
    line-height: 40px;
    font-size: 0.7rem;
    color: var(--color-text-light);
    border-radius: 5px;
}

.testimonial-box {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #E0E0E0;
    max-width: 800px;
    margin: 0 auto 30px;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    position: absolute;
    top: 15px;
    left: 20px;
    opacity: 0.15;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonial-box p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.testimonial-box cite {
    display: block;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-primary);
}


/* --- CONTACT SECTION --- */
.contact-section {
    background-color: #f8f8f8;
}

.form-container {
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: left;
    padding: 30px;
    background-color: var(--color-bg-white);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #DDD;
    border-radius: 5px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-container textarea {
    resize: vertical;
}

.contact-info p {
    margin-bottom: 5px;
}


/* --- FOOTER --- */
.footer {
    padding: 20px 5%;
    border-top: 1px solid #EEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--color-text-light);
    max-width: 1200px;
    margin: 0 auto;
}

.social-links a {
    margin-left: 15px;
    font-size: 1.2rem;
    color: var(--color-text-light);
}

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

/* --- MEDIA QUERIES (RESPONSIVE DESIGN) --- */
@media (max-width: 900px) {
    .header {
        flex-direction: column;
    }
    .nav {
        margin-top: 15px;
        text-align: center;
    }
    .nav a {
        margin: 0 10px;
    }

    .hero-section {
        flex-direction: column-reverse; /* Imagen arriba, Contenido abajo en móvil */
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        margin-bottom: 40px;
    }

    .hero-image img {
        max-width: 100%; 
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .advantages-grid {
        flex-direction: column;
        align-items: center;
    }
    .advantage-card i {
        margin-left: auto;
        margin-right: auto;
    }
    .why-choose-section h2 {
        font-size: 1.8rem;
    }
    .why-choose-section .subtitle {
        font-size: 1rem;
    }
    .metrics-bar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }


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

    .social-links {
        margin-top: 10px;
    }
}

@media (max-width: 500px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }

    .nav a:not(.cta-nav) {
        display: none; /* Ocultar enlaces de navegación para ahorrar espacio */
    }
    
    .logo-placeholder {
        width: 80px;
        height: 30px;
    }
}
