html {
    scroll-behavior: smooth; /* ¡Esto hace el efecto de transición suave! */
}

/* VARIABLES Y RESET BÁSICO */
:root {
    --color-primary: #00a2e8; /* Azul/Cyan principal para acentos */
    --color-secondary: #0080c0; /* Un azul más oscuro */
    --color-text-dark: #333333;
    --color-text-light: #ffffff;
    --color-background-light: #f8f8f8; /* Fondo claro de secciones */
    --color-background-dark: #1f3a5f; /* Fondo oscuro (para Contacto) */
    --font-family: 'Poppins', sans-serif;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text-dark);
}

/* UTILIDADES GENERALES */
.section-padding {
    padding: 80px 20px;
    margin: 0 auto;
    max-width: var(--max-width);
}

.bg-light {
    background-color: var(--color-background-light);
}

.bg-dark {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    font-weight: 600;
}

/* BOTONES (CTA) */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s, transform 0.3s;
    text-align: center;
}

.cta-button.primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
}

.cta-button.primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.cta-button.secondary-light {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    border: 2px solid var(--color-text-light);
}

/* HEADER / NAVEGACIÓN */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--color-text-light);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo span {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    line-height: 1;
}

.logo p {
    font-size: 0.8em;
    font-weight: 300;
    color: var(--color-text-dark);
}

.nav a {
    color: var(--color-text-dark);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.9em;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--color-primary);
}

/* SECCIÓN HERO */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('ruta/a/tu/imagen-de-portada.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-light);
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 300;
}

/* SECCIÓN DE CARACTERÍSTICAS (FEATURES) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 10px;
    color: var(--color-secondary);
}

/* SECCIÓN DE TESTIMONIOS */
.testimonials-section {
    text-align: center;
}

.rating {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--color-primary);
}

.testimonial-cards-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: var(--color-text-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    max-width: 300px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-card cite {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--color-primary);
}

/* SECCIÓN DE SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-height: 250px; /* Para simular espacio de imagen */
    background-color: #e0e0e0; /* Color temporal para el espacio de la imagen */
}

.service-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--color-text-light);
    padding: 15px;
    font-size: 1.2em;
    font-weight: 600;
}

/* SECCIÓN DEL EQUIPO */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    text-align: center;
}

.team-member {
    max-width: 250px;
    padding: 20px;
}

.team-member h3 {
    font-size: 1.3em;
    margin-top: 10px;
    color: var(--color-primary);
}

.team-member p {
    font-weight: 400;
    color: var(--color-text-dark);
}

/* SECCIÓN DE CONTACTO */
.contact-section h2 {
    color: var(--color-text-light);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.info-item {
    text-align: center;
    padding: 20px;
}

.info-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.info-item p {
    font-size: 1.1em;
    margin: 5px 0;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    font-size: 0.9em;
}

.footer .social-links a {
    color: var(--color-text-light);
    margin: 0 15px;
    text-decoration: none;
    font-weight: 300;
}

/* MEDIA QUERIES (RESPONSIVE DESIGN) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
    }

    .nav {
        margin: 15px 0;
    }

    .nav a {
        margin: 0 10px;
        display: block;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em;
    }
    
    .section-padding {
        padding: 50px 15px;
    }

    .testimonial-cards-container {
        flex-direction: column;
        align-items: center;
    }
}