/* ==================== Variables y Estilos Globales ==================== */
:root {
    --header-height: 3.5rem;

    /* Colores optimizados para mejor contraste y legibilidad */
    --first-color: #00FFA3; /* Verde eléctrico de acento */
    --first-color-alt: #00cc83;
    --first-color-light: #4dffbb;
    --white-color: #ffffff; /* Blanco puro */
    --title-color: #F8F9FA; /* Blanco grisáceo para títulos */
    --text-color: #ced4da; /* Gris claro para texto */
    --text-color-light: #e9ecef;
    --body-color: #212529; /* Gris grafito oscuro para el fondo */
    --container-color: #2c3135; /* Un tono más claro para las tarjetas */
    --border-color: #495057;
    
    /* Colores adicionales para SEO y UX */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;

    /* Fuentes optimizadas */
    --body-font: 'Poppins', sans-serif;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;

    --font-light: 300;
    --font-medium: 400;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* Shadows */
    --box-shadow: 0 4px 6px hsla(0, 0%, 0%, 0.1);
    --box-shadow-hover: 0 8px 25px hsla(0, 0%, 0%, 0.15);
    
    /* Transitions */
    --transition: .3s ease;
    --transition-slow: .6s ease;
}

/* ==================== Base Styles ==================== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Mejora accesibilidad */
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6; /* Mejora legibilidad */
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

a:hover {
    color: var(--first-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Evita espacios en blanco */
}

/* ==================== Utility Classes ==================== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding: 4.5rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section__title::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--first-color);
    display: block;
    margin: 0.5rem auto;
    border-radius: 2px;
}

.section__subtitle {
    display: block;
    text-align: center;
    font-size: var(--normal-font-size);
    color: var(--text-color-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== Botones ==================== */
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: var(--body-color);
    padding: 1rem 1.75rem;
    border-radius: .5rem;
    font-weight: var(--font-semi-bold);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: var(--body-font);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    background-color: var(--first-color-alt);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.button:active {
    transform: translateY(-1px);
}

/* ==================== Header y Navegación ==================== */
.header {
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
}

.scroll-header {
    background-color: var(--body-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

.scroll-header .nav__logo,
.scroll-header .nav__link {
    color: var(--title-color);
}

.scroll-header .nav__phone {
    color: var(--first-color);
    background-color: rgba(0, 255, 163, 0.1);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.nav__logo {
    color: var(--title-color);
    font-weight: var(--font-bold);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    transition: var(--transition);
}

.nav__logo i {
    color: var(--first-color);
}

.nav__list {
    display: flex;
    column-gap: 2.5rem;
}

.nav__link {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -0.5rem;
    left: 0;
    background-color: var(--first-color);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(0, 255, 163, 0.1);
}

.nav__phone:hover {
    color: var(--first-color-light);
    background-color: rgba(0, 255, 163, 0.2);
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--title-color);
}

.button--header {
    padding: .75rem 1.5rem;
    font-size: var(--small-font-size);
}

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(rgba(33, 37, 41, 0.7), rgba(33, 37, 41, 0.9)), 
                url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Hero image optimizada por viewport — reduce peso en mobile */
@media (max-width: 1024px) {
    .hero {
        background-image: linear-gradient(rgba(33, 37, 41, 0.7), rgba(33, 37, 41, 0.9)),
                          url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=1024&q=75');
    }
}

@media (max-width: 768px) {
    .hero {
        background-image: linear-gradient(rgba(33, 37, 41, 0.7), rgba(33, 37, 41, 0.9)),
                          url('https://images.unsplash.com/photo-1518709268805-4e9042af2176?ixlib=rb-4.0.3&auto=format&fit=crop&w=768&q=70');
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 163, 0.1), rgba(0, 204, 131, 0.1));
    pointer-events: none;
}

.hero__container {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: var(--h1-font-size);
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--title-color), var(--first-color-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    margin-bottom: 2rem;
    font-size: 1.15rem;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* ==================== Services Section ==================== */
.services__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .services__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services__container {
        grid-template-columns: 1fr;
    }
}

.service__card {
    background-color: var(--container-color);
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition-slow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
    width: 100%;
    box-sizing: border-box;
}

.service__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.service__card:hover::before {
    opacity: 0.05;
}

.service__card:hover {
    border-color: var(--first-color);
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service__card > * {
    position: relative;
    z-index: 2;
}

.service__icon {
    font-size: 3rem;
    color: var(--first-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service__card:hover .service__icon {
    transform: scale(1.1);
}

.service__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
    color: var(--title-color);
}

.service__description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 0;
}

.service__features {
    text-align: left;
    margin-top: 1rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.service__features li {
    margin-bottom: 0.5rem;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

.button--service {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    color: var(--white-color) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: var(--font-medium);
    font-size: var(--small-font-size);
    margin-top: auto;
    text-align: center;
    align-self: center;
    width: 80%;
}

.button--service:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 255, 163, 0.3);
    color: var(--white-color) !important;
}

/* ==================== Store & Product Section ==================== */
.store__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .store__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .store__container {
        grid-template-columns: 1fr;
    }
}

.product__card {
    background-color: var(--container-color);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    overflow: hidden;
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.product__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--first-color);
}

.product__img {
    border-radius: .75rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.product__card:hover .product__img {
    transform: scale(1.05);
}

.product__title {
    font-size: var(--h3-font-size);
    margin-bottom: .75rem;
    color: var(--title-color);
}

.product__specs {
    margin-bottom: 1rem;
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    line-height: 1.4;
}

.product__price {
    display: block;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--first-color);
    margin-bottom: 1rem;
}

.product__availability {
    font-size: var(--small-font-size);
    color: var(--success-color);
    margin-top: 0.5rem;
    font-weight: var(--font-semi-bold);
}

.button--product {
    width: 100%;
    margin-bottom: 0.5rem;
}

.store__cta {
    grid-column: 1 / -1;
    text-align: center;
    background-color: var(--container-color);
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin-top: 2rem;
    border: 2px dashed var(--first-color);
}

.store__cta h3 {
    color: var(--title-color);
    margin-bottom: 1rem;
}

.store__cta p {
    margin-bottom: 2rem;
    color: var(--text-color-light);
}

/* ==================== Contact Section ==================== */
.contact__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact__info-item {
    background-color: var(--container-color);
    padding: 1.75rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    min-width: 0;
    width: 100%;
}

.contact__info-item:hover {
    border-color: var(--first-color);
    transform: translateY(-5px);
}

.contact__info-icon {
    font-size: 1.75rem;
    color: var(--first-color);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact__info-item > div {
    min-width: 0;
    flex: 1;
    width: 100%;
}

.contact__info-item h3 {
    color: var(--title-color);
    font-size: var(--small-font-size);
    margin-bottom: 0.5rem;
    font-weight: var(--font-semi-bold);
}

.contact__info-item p {
    margin-bottom: 0.25rem;
    line-height: 1.4;
    font-size: var(--small-font-size);
}

.contact__info-item small {
    color: var(--text-color);
    font-size: var(--smaller-font-size);
    line-height: 1.3;
}

.contact__info-item a {
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
    font-size: var(--smaller-font-size);
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.contact__email {
    font-size: var(--smaller-font-size) !important;
    line-height: 1.2 !important;
    display: inline-block;
    max-width: 100%;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 700px;
    margin: auto;
    background-color: var(--container-color);
    padding: 3rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.contact__form h3 {
    color: var(--title-color);
    text-align: center;
    margin-bottom: 1rem;
}

.contact__inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact__input,
.contact__input select {
    width: 100%;
    padding: 1rem;
    border-radius: .75rem;
    border: 2px solid var(--border-color);
    background-color: var(--body-color);
    color: var(--text-color);
    font-family: var(--body-font);
    transition: var(--transition);
    font-size: var(--normal-font-size);
}

.contact__input:focus {
    outline: none;
    border-color: var(--first-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.1);
}

.contact__input::placeholder {
    color: var(--text-color);
}

textarea.contact__input {
    height: 120px;
    resize: vertical;
    grid-column: 1 / -1;
}

/* ==================== About Section ==================== */
.about__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .about__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about__container {
        grid-template-columns: 1fr;
    }
}

.about__item {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    transition: var(--transition-slow);
    border: 1px solid var(--border-color);
}

.about__item:hover {
    transform: translateY(-5px);
    border-color: var(--first-color);
    box-shadow: var(--box-shadow-hover);
}

.about__icon {
    font-size: 2.5rem;
    color: var(--first-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.about__item:hover .about__icon {
    transform: scale(1.1);
}

.about__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
    color: var(--title-color);
}

.about__item p {
    line-height: 1.6;
    color: var(--text-color-light);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--container-color);
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__about {
    max-width: 300px;
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
    color: var(--title-color);
}

.footer__description {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer__certifications {
    margin-top: 1rem;
}

.footer__certifications ul {
    margin-top: 0.5rem;
}

.footer__certifications li {
    font-size: var(--small-font-size);
    margin-bottom: 0.25rem;
    color: var(--text-color-light);
}

.footer__link {
    display: inline-block;
    margin-bottom: .75rem;
    transition: var(--transition);
    color: var(--text-color-light);
}

.footer__link:hover {
    color: var(--first-color);
    transform: translateX(5px);
}

.footer__info {
    margin-bottom: .75rem;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__info a {
    color: var(--first-color);
    font-weight: var(--font-semi-bold);
}

.footer__social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--body-color);
    color: var(--text-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.footer__social-link:hover {
    background-color: var(--first-color);
    color: var(--body-color);
    transform: translateY(-3px);
}

.footer__social-link--whatsapp:hover {
    background-color: #25d366;
}

.footer__reviews {
    margin-top: 1rem;
}

.footer__reviews p {
    margin-bottom: 0.25rem;
    font-size: var(--small-font-size);
}

.footer__seo {
    background-color: var(--body-color);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer__seo h4 {
    color: var(--title-color);
    margin-bottom: 1rem;
    font-size: var(--h3-font-size);
}

.footer__seo p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    font-size: var(--small-font-size);
}

.footer__seo strong {
    color: var(--first-color);
}

.footer__copy {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0 1rem;
    font-size: var(--small-font-size);
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
}

.footer__copy a {
    color: var(--first-color);
}

/* ==================== Responsive Media Queries ==================== */

/* Mobile Menu */
@media screen and (max-width: 1024px) {
    .nav__phone span {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --h1-font-size: 2rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.125rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section {
        padding: 3rem 0 2rem;
    }

    /* Mobile Navigation */
    .nav__menu {
        position: fixed;
        background-color: var(--body-color);
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        padding: 4rem 2rem 2rem;
        transition: var(--transition);
        z-index: 100;
        box-shadow: -2px 0 4px hsla(0, 0%, 0%, 0.1);
        border-left: 2px solid var(--first-color);
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        row-gap: 2rem;
    }

    .nav__link {
        font-size: var(--normal-font-size);
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 2rem;
        color: var(--first-color);
    }

    .nav__toggle {
        display: block;
        color: var(--title-color);
    }

    .nav__actions {
        gap: 0.75rem;
    }

    .nav__phone {
        font-size: var(--small-font-size);
        padding: 0.25rem 0.5rem;
    }

    .nav__phone span {
        display: none;
    }

    .button--header {
        padding: 0.5rem 1rem;
        font-size: var(--smaller-font-size);
    }

    /* Hero Section */
    .hero {
        height: 100vh;
        padding: 0 1rem;
    }

    .hero__title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Services */
    .services__container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service__card {
        padding: 2rem 1.5rem;
    }

    .service__features {
        text-align: center;
    }

    /* Products */
    .store__container {
        grid-template-columns: 1fr;
    }

    .product__card {
        padding: 1.5rem 1rem;
    }

    /* About */
    .about__container {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact__info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact__info-item {
        padding: 1.25rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        align-items: center;
    }

    .contact__info-icon {
        font-size: 1.5rem;
    }

    .contact__info-item h3 {
        font-size: var(--smaller-font-size);
        margin-bottom: 0.25rem;
    }

    .contact__info-item p {
        font-size: var(--smaller-font-size);
    }

    .contact__info-item a {
        font-size: var(--smaller-font-size);
        word-break: break-word;
    }

    .contact__email {
        font-size: var(--smaller-font-size) !important;
    }

    .contact__inputs {
        grid-template-columns: 1fr;
    }

    .contact__form {
        padding: 2rem 1rem;
    }

    /* Footer */
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__seo {
        padding: 1.5rem 0;
    }

    .footer__seo p {
        text-align: left;
    }
}

@media screen and (max-width: 480px) {
    .hero__title {
        font-size: 1.5rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .service__card,
    .product__card,
    .about__item {
        padding: 1.5rem 1rem;
    }

    .contact__form {
        padding: 1.5rem 1rem;
    }

    .footer__seo h4 {
        font-size: 1rem;
    }
}

/* ==================== Animation Classes ==================== */
.loaded .service__card,
.loaded .product__card,
.loaded .about__item {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ==================== Performance: Content Visibility ==================== */
/* Secciones fuera del viewport inicial se renderizan bajo demanda */
#testimonios,
#about,
.footer {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* ==================== Accessibility Improvements ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --first-color: #00ff00;
        --title-color: #ffffff;
        --text-color: #ffffff;
        --border-color: #ffffff;
    }
}

/* Focus styles for better accessibility */
.button:focus,
.nav__link:focus,
.contact__input:focus {
    outline: 2px solid var(--first-color);
    outline-offset: 2px;
}

/* ==================== Utility Classes ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.hidden { display: none; }
.visible { display: block; }

/* ==================== Print Styles ==================== */
@media print {
    .header,
    .nav__toggle,
    .nav__menu,
    .button,
    .footer__social {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        background: none !important;
        color: black !important;
    }
}

/* ==================== WhatsApp Floating Button ==================== */
.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    animation: whatsapp-pulse 2.5s infinite;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    color: #FFF;
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.whatsapp-float:active {
    transform: scale(1.05);
}

.whatsapp-float i {
    font-size: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-float:hover i {
    animation: whatsapp-shake 0.6s ease-in-out;
}

/* Animación de pulso mejorada */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Animación de sacudida al hacer hover */
@keyframes whatsapp-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Tooltip mejorado */
.whatsapp-float::before {
    content: "¡Chateemos por WhatsApp!";
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive para el botón flotante mejorado */
@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: 25px;
        font-size: 28px;
    }
    
    .whatsapp-float i {
        font-size: 30px;
    }
    
    .whatsapp-float::before {
        display: none; /* Ocultar tooltip en móviles */
    }
    
    .whatsapp-float::after {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .whatsapp-float i {
        font-size: 26px;
    }
}

/* ==================== Estilos para Testimonios ==================== */
.testimonios__container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonio__card {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonio__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.testimonio__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--first-color);
    margin-bottom: 0.5rem;
}

.testimonio__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonio__content {
    flex: 1;
}

.testimonio__name {
    font-size: var(--h3-font-size);
    margin-bottom: 0.25rem;
}

.testimonio__job {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.testimonio__rating {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: var(--normal-font-size);
}

.testimonio__description {
    font-style: italic;
    line-height: 1.7;
}

.testimonios__more {
    text-align: center;
    margin-top: 3rem;
}

.button--outline {
    background-color: transparent;
    border: 2px solid var(--first-color);
    color: var(--first-color);
}

.button--outline:hover {
    background-color: var(--first-color);
    color: var(--body-color);
}

@media screen and (max-width: 767px) {
    .testimonio__card {
        padding: 1.5rem;
    }
}

/* Hero tagline */
.hero__tagline {
    font-size: 1.2rem;
    color: var(--first-color-light);
    font-weight: var(--font-semi-bold);
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

@media screen and (max-width: 768px) {
    .hero__tagline {
        font-size: 1rem;
    }
}

/* ==================== Estilos para Productos ==================== */
.product-name {
    font-weight: var(--font-medium);
    display: inline-block;
    width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
    float: right;
}

.service__features li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    align-items: center;
}
