/* ==================== VARIABLES Y ESTILOS BASE ==================== */
:root {
    /* Paleta de Colores Inspirada en Tech */
    --color-background: #FFFFFF;
    --color-text-primary: #1d1d1f; /* Azul marino muy oscuro, casi negro (Apple) */
    --color-text-secondary: #5a5a5f;
    --color-accent: #0071e3; /* Azul eléctrico (Apple) */
    --color-accent-hover: #0077ed;
    --color-light-gray: #f5f5f7;

    /* Tipografía */
    --font-primary: 'Poppins', sans-serif;
    --h1-size: 3.5rem;
    --h2-size: 2.5rem;
    --h3-size: 1.25rem;

    /* Layout */
    --header-height: 5rem;
    --container-width: 1120px;
    --border-radius: 12px;
}

/* Responsive Typography */
@media screen and (max-width: 768px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 1.8rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section__title {
    font-size: var(--h2-size);
    text-align: center;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* ==================== BOTONES ==================== */
.button {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    transform: scale(1.05);
}

.button--primary {
    background-color: var(--color-accent);
    color: #fff;
}

.button--primary:hover {
     background-color: var(--color-accent-hover);
}

.button--accent {
    background-color: #25D366; /* Verde WhatsApp */
    color: #fff;
}
.button--accent:hover {
    background-color: #28e06c;
}

.button i {
    margin-right: 0.5rem;
}

/* ==================== HEADER ==================== */
.header {
    height: var(--header-height);
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.whatsapp-icon {
    font-size: 2rem;
    color: #25D366;
    transition: transform 0.2s ease;
}
.whatsapp-icon:hover {
    transform: scale(1.1);
}

/* ==================== HERO ==================== */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
}

.hero__title {
    font-size: var(--h1-size);
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
}

/* ==================== SERVICIOS ==================== */
.services {
    background-color: var(--color-light-gray);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-background);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card__icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.service-card__title {
    font-size: var(--h3-size);
    margin-bottom: 0.5rem;
}

/* ==================== MARCAS ==================== */
.brands {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.brands__title {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    font-weight: 600;
}

.brands__grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.brands__grid img {
    height: 45px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: opacity 0.3s, filter 0.3s;
}

.brands__grid img:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* ==================== POR QUÉ ELEGIRNOS ==================== */
.choose-us {
    background-color: var(--color-light-gray);
}

.choose-us__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
}

.feature__icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.feature__text {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--color-text-primary);
    color: #fff;
    padding: 5rem 0;
}

.footer__title {
    font-size: var(--h2-size);
    color: #fff;
    margin-bottom: 1rem;
}

.footer__subtitle {
    color: #ccc;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.footer__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer__details {
    margin-bottom: 2rem;
}

.footer__details p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer__details a {
    color: #fff;
    text-decoration: underline;
}

.footer__details i {
    margin-right: 0.75rem;
}

.footer__copy {
    font-size: 0.9rem;
    color: #888;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media screen and (max-width: 480px) {
    .header__contact .button--primary {
        display: none; /* Oculta el botón de llamar en pantallas muy pequeñas */
    }
    .footer__actions {
        flex-direction: column;
        align-items: center;
    }
    .footer__actions .button {
        width: 80%;
    }
}