/* ===== CSS Variables ===== */
:root {
    --color-primary: #870000;
    --color-primary-dark: #6b0000;
    --color-secondary: #1a1a1a;
    --color-white: #ffffff;
    --color-gray-light: #f2f2f2;
    --color-gray: #666666;
    --color-text: #333333;
    
    --font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== Utility Classes ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.section__subtitle {
    text-align: center;
    color: var(--color-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn--large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn--whatsapp {
    background-color: #25D366;
    color: #ffffff;
    min-height: 48px;
}

.btn--whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--whatsapp svg {
    flex-shrink: 0;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    animation: pulse 2s infinite;
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
    transition: var(--transition);
}

.whatsapp-float:hover img {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav__logo .logo {
    height: 55px;
    width: auto;
}

.nav__brand {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-left: 10px;
}

.nav__menu {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: var(--color-text);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--catalog {
    color: var(--color-primary);
    font-weight: 700;
}

.nav__link--catalog::after {
    width: 100%;
    background-color: var(--color-primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, hsla(213, 8%, 78%, 0.444), hsla(203, 4%, 10%, 0.477)), url('../images/hero/portada3.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 70px;
    padding: 4rem 0;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    padding: 2rem 0;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.wave svg {
    height: 100%;
    width: 100%;
}

/* ===== Products Section ===== */
.products {
    padding: 6rem 0;
    background-color: var(--color-gray-light);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background-color: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(135, 0, 0, 0.15);
    border-color: rgba(135, 0, 0, 0.1);
}

.product-card__image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__content {
    padding: 1.5rem;
}

.product-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-secondary);
}

.product-card__description {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.catalog-download {
    text-align: center;
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ===== WhatsApp CTA Banner ===== */
.whatsapp-cta-banner {
    padding: 2.5rem 0;
    background-color: var(--color-primary);
    text-align: center;
}

.whatsapp-cta-banner__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.whatsapp-cta-banner__text {
    color: var(--color-white);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.whatsapp-cta-banner .btn--whatsapp {
    font-size: 1rem;
    min-height: 44px;
    padding: 12px 28px;
    white-space: nowrap;
}

/* ===== Services Section ===== */
.services {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-gray-light);
    border-radius: 12px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-card__icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.service-card__icon svg {
    width: 64px;
    height: 64px;
    stroke: var(--color-primary);
    stroke-width: 1.5;
    fill: none;
    transition: var(--transition);
}

.service-card:hover .service-card__icon svg {
    transform: scale(1.1);
    stroke: var(--color-primary-dark);
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.service-card__text {
    color: var(--color-gray);
    line-height: 1.8;
    text-align: justify;
}

/* ===== Contact Section ===== */
.contact {
    padding: 6rem 0;
    background-color: var(--color-gray-light);
}

.contact__wrapper {
    margin-top: 3rem;
}

.contact__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .contact__cards {
        grid-template-columns: 1fr;
    }
}

.contact__card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact__card-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.contact__card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.contact__card p {
    color: var(--color-gray);
    margin: 0.5rem 0;
    font-size: 0.95rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact__card .btn {
    margin-top: 1rem;
}

.contact__card-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.contact__hours-box {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    margin: 0 auto;
}

.contact__hours-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.contact__hours-box p {
    color: var(--color-gray);
    margin: 0.75rem 0;
    font-size: 1.05rem;
}

/* ===== Footer ===== */
.footer {
    background-color: #414141;
    color: var(--color-white);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer__logo-img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__url {
    text-align: center;
    opacity: 0.95;
    font-size: 0.95rem;
    margin: 0;
}

.footer__copyright {
    margin-top: 1rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__content {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-gray);
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--color-primary);
}

.modal__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.modal__compatibility {
    margin-bottom: 1.5rem;
}

.modal__compatibility h4,
.modal__features h4 {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.modal__compatibility ul,
.modal__features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal__compatibility li {
    display: inline-block;
    background-color: var(--color-gray-light);
    padding: 6px 14px;
    border-radius: 20px;
    margin: 4px 6px 4px 0;
    font-size: 0.9rem;
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal__features {
    margin-bottom: 1.5rem;
}

.modal__features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-gray-light);
    color: var(--color-text);
    font-size: 0.95rem;
}

.modal__features li:last-child {
    border-bottom: none;
}

.modal__cta {
    margin-top: 2rem;
    text-align: center;
}

.modal__whatsapp-btn {
    min-height: 48px;
    width: 100%;
    justify-content: center;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: var(--color-white);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
    }
    
    .nav__menu.active {
        left: 0;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero {
        margin-top: 70px;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .products__grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
