/* RESET BÁSICO Y FUENTES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #007bff; /* Azul Tecnológico */
    --color-primary-dark: #0056b3;
    --color-secondary: #343a40; /* Gris Oscuro */
    --color-background: #f8f9fa; /* Fondo Claro */
    --color-light: #ffffff; /* Blanco */
    --font-family: 'Poppins', sans-serif;
    --max-width: 1200px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: var(--color-background);
    scroll-behavior: smooth;
}

/* UTILIDADES Y TIPOGRAFÍA */
h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
}

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

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* SECCIONES BASE */
.section {
    padding: 4rem 1rem;
    margin: 0 auto;
    max-width: var(--max-width);
}

/* ESTILO CTA (CALL TO ACTION) */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-cta {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.primary-cta:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.secondary-cta {
    background-color: var(--color-secondary);
    color: var(--color-light);
    margin-top: 2rem;
}

.secondary-cta:hover {
    background-color: #212529;
    transform: translateY(-2px);
}

.cta-button .icon {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

/* 1. CABECERA (HERO SECTION) */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 4rem;
    background-color: var(--color-light);
    border-bottom: 10px solid var(--color-primary);
}

.hero-content {
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    color: var(--color-primary-dark);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin: 1rem 0 2rem;
}

.hero-image {
    width: 90%;
    max-width: 500px;
    height: 300px; /* Placeholder para imagen */
    background-color: #ddd; 
    border-radius: 10px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-style: italic;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* 2. SECCIÓN DE SERVICIOS */
.services-section {
    background-color: var(--color-light);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-card {
    flex: 1 1 300px; /* Responsividad: 300px min width */
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 1rem;
}

/* 3. SECCIÓN DE VALOR ÚNICO */
.unique-value-section {
    background-color: #e9ecef; /* Tono de fondo sutil */
    text-align: center;
    padding: 6rem 1rem;
}

.unique-value-section h2 {
    color: var(--color-primary-dark);
}

.unique-value-section ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
}

.unique-value-section ul li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    border-bottom: 1px dashed #ced4da;
    display: flex;
    align-items: center;
}

.unique-value-section ul li:last-child {
    border-bottom: none;
}

.unique-value-section ul li::before {
    content: ''; /* Ocultamos el marcador por defecto para usar nuestro ✅ */
    margin-right: 0.5rem;
}

/* 4. SECCIÓN DE TESTIMONIOS */
.testimonials-section {
    background-color: var(--color-light);
}

.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    border-left: 5px solid var(--color-primary);
    background-color: #f1f1f1;
    border-radius: 5px;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.client-name {
    font-weight: 600;
    text-align: right;
    color: var(--color-primary-dark);
}

/* 5. SECCIÓN DE CONTACTO (FORMULARIO) */
.contact-section {
    background-color: var(--color-secondary);
    color: var(--color-light);
    text-align: center;
}

.contact-section h2, .contact-section p {
    color: var(--color-light);
}

.contact-section h2::after {
    background-color: var(--color-primary);
}

.contact-form {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
    font-family: var(--font-family);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button.primary-cta {
    width: 100%;
}

/* PIE DE PÁGINA */
.footer {
    text-align: center;
    padding: 1.5rem 1rem;
    background-color: #212529;
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    margin-top: 0.5rem;
}

/* MEDIA QUERIES PARA RESPONSIVIDAD */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: left;
        padding: 8rem 2rem;
        justify-content: space-between;
    }
    
    .hero-content {
        max-width: 50%;
        margin-right: 3rem;
        margin-bottom: 0;
    }
    
    .hero-image {
        width: 40%;
        height: 350px;
        margin-top: 0;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
    }
}
