/* ============================================
   CAJOL SILICONES - DESIGN SYSTEM
   Modern, Premium Landing Page
   ============================================ */

/* ============================================
   1. CSS RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   2. DESIGN TOKENS
   ============================================ */

:root {
    /* Colors - Cajol Brand */
    --primary-blue: #0A2342;
    --primary-blue-light: #1a3a5a;
    --primary-yellow: #FFD700;
    --primary-yellow-dark: #FFA500;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --medium-gray: #E1E8ED;
    --dark-gray: #2C3E50;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --whatsapp: #55B630;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0A2342 0%, #1a3a5a 100%);
    --gradient-accent: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(10, 35, 66, 0.95) 0%, rgba(26, 58, 90, 0.9) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Typography */
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Open Sans', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container */
    --container-width: 1200px;
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.125rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   4. UTILITIES
   ============================================ */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary-yellow);
}

.text-white {
    color: var(--white);
}

.wpp-button {
    background-color: var(--whatsapp);
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   5. BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    white-space: nowrap;
}

.btn--primary {
    background: var(--whatsapp);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn--secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--whatsapp) !important;
}

.btn--large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* ============================================
   6. HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__logo h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary-blue);
}

.nav__list {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav__link {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-base);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__toggle,
.nav__close {
    display: none;
    cursor: pointer;
}

/* Mobile Menu */
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        padding: 4rem 2rem;
        transition: var(--transition-base);
        box-shadow: var(--shadow-xl);
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav__toggle,
    .nav__close {
        display: block;
        color: var(--primary-blue);
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
}

/* ============================================
   7. HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A2342 0%, #1a3a5a 50%, #0A2342 100%);
    opacity: 0.03;
    z-index: -1;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.hero__content {
    z-index: 10;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.hero__title {
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero__description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
    font-weight: 800;
}

.stat__label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.hero__image {
    position: relative;
    z-index: 5;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero__image-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-accent);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

@media screen and (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__description {
        margin: 0 auto 2rem;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .hero__stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero__cta {
        flex-direction: column;
    }
}

/* ============================================
   8. SECTIONS
   ============================================ */

section {
    padding: var(--spacing-xl) 0;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section__badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-radius: 50px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.section__title {
    margin-bottom: 1rem;
}

.section__description {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   9. PRODUCTS SECTION
   ============================================ */

.products {
    background: var(--light-gray);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card--featured {
    border: 2px solid var(--primary-yellow);
}

.product-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-accent);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
}

.product-card__image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--light-gray);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.product-card__description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-card__features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-card__features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--medium-gray);
}

.product-card__features li:last-child {
    border-bottom: none;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
}

.product-card__tag {
    font-size: 0.85rem;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(10, 35, 66, 0.1);
    border-radius: var(--radius-sm);
}

/* ============================================
   10. ABOUT SECTION
   ============================================ */

/* .about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
} */

.about__image {
    position: relative;
}

.about__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about__badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about__badge-year {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.about__badge-text {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.about__content {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.about__text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about__mission {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.mission-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mission-item svg {
    color: var(--primary-yellow);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.mission-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.mission-item p {
    margin: 0;
    font-size: 0.95rem;
}

@media screen and (max-width: 1024px) {
    .about__container {
        grid-template-columns: 1fr;
    }

    .about__content {
        max-width: 100%;
    }
}

/* ============================================
   11. DIFFERENTIALS SECTION
   ============================================ */

.differentials {
    background: var(--white);
}

.differentials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.differential-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.differential-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-yellow);
    box-shadow: var(--shadow-md);
}

.differential-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--white);
}

.differential-card__title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.differential-card__description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   12. CONTACT SECTION
   ============================================ */

.contact {
    background: var(--light-gray);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact__content {
    max-width: 600px;
}

.contact__text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact__item-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact__item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact__item a {
    color: var(--text-secondary);
    font-weight: 500;
}

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

.contact__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__image-wrapper {
    max-width: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

@media screen and (max-width: 1024px) {
    .contact__container {
        grid-template-columns: 1fr;
    }

    .contact__content {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .contact__cta {
        flex-direction: column;
    }
}

/* ============================================
   13. FOOTER
   ============================================ */

.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__logo h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer__logo p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer__links h4,
.footer__contact h4 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer__links ul,
.footer__contact ul {
    list-style: none;
}

.footer__links li,
.footer__contact li {
    margin-bottom: 0.75rem;
}

.footer__links a,
.footer__contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-base);
}

.footer__links a:hover,
.footer__contact a:hover {
    color: var(--primary-yellow);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer__keywords {
    opacity: 0.6;
}

@media screen and (max-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   14. FLOATING WHATSAPP BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
    }
}

/* ============================================
   15. SCROLL ANIMATIONS
   ============================================ */

.scroll-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   16. RESPONSIVE ADJUSTMENTS
   ============================================ */

@media screen and (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .btn {
        width: 100%;
    }

    .hero__stats {
        gap: 1rem;
    }

    .stat__number {
        font-size: 2rem;
    }
}

/* ============================================
   17. PRODUCT CAROUSEL (SWIPER)
   ============================================ */

.product-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.product-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
}

.product-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation Buttons */
.product-swiper .swiper-button-next,
.product-swiper .swiper-button-prev {
    color: var(--white);
    background: rgba(10, 35, 66, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all var(--transition-base);
}

.product-swiper .swiper-button-next:after,
.product-swiper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.product-swiper .swiper-button-next:hover,
.product-swiper .swiper-button-prev:hover {
    background: var(--primary-blue);
    transform: scale(1.1);
}

/* Pagination */
.product-swiper .swiper-pagination {
    bottom: 10px;
}

.product-swiper .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.7;
    width: 10px;
    height: 10px;
}

.product-swiper .swiper-pagination-bullet-active {
    background: var(--primary-yellow);
    opacity: 1;
    width: 12px;
    height: 12px;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {

    .product-swiper .swiper-button-next,
    .product-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .product-swiper .swiper-button-next:after,
    .product-swiper .swiper-button-prev:after {
        font-size: 16px;
    }
}