﻿/* =========================================================
   MAGICPLAST - ESTILOS GENERALES
   ========================================================= */

:root {
    --magic-red: #ed1c24;
    --magic-red-dark: #c81018;
    --magic-black: #171717;
    --magic-gray: #5f5f5f;
    --magic-light: #f8f5f3;
    --magic-border: #e9e9e9;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--magic-black);
    background-color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

form {
    width: 100%;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.main-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #eeeeee;
}

.navbar {
    min-height: 88px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 35px;
    padding: 0;
}

.brand-logo {
    display: block;
    width: 190px;
    height: auto;
    max-height: 88px;
    object-fit: contain;
}

.navbar-nav {
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 28px 11px !important;
    color: #333333;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--magic-red);
    }

        .nav-link.active::after {
            content: "";
            position: absolute;
            right: 11px;
            bottom: 17px;
            left: 11px;
            height: 2px;
            border-radius: 2px;
            background-color: var(--magic-red);
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon,
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.header-icon {
    color: #222222;
    background-color: transparent;
    font-size: 20px;
}

    .header-icon:hover {
        color: var(--magic-red);
        background-color: #f5f5f5;
    }

.whatsapp-button {
    color: #ffffff;
    background-color: var(--magic-red);
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(237, 28, 36, 0.25);
}

    .whatsapp-button:hover {
        color: #ffffff;
        background-color: var(--magic-red-dark);
        transform: translateY(-2px);
    }


/* =========================================================
   BOTONES
   ========================================================= */

.btn-primary-magic,
.btn-outline-magic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 54px;
    padding: 14px 26px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.btn-primary-magic {
    border: 2px solid var(--magic-red);
    color: #ffffff;
    background-color: var(--magic-red);
    box-shadow: 0 12px 28px rgba(237, 28, 36, 0.24);
}

    .btn-primary-magic:hover {
        border-color: var(--magic-red-dark);
        color: #ffffff;
        background-color: var(--magic-red-dark);
        transform: translateY(-3px);
    }

.btn-outline-magic {
    border: 2px solid #222222;
    color: #222222;
    background-color: transparent;
}

    .btn-outline-magic:hover {
        color: #ffffff;
        background-color: #222222;
        transform: translateY(-3px);
    }


/* =========================================================
   HERO SLIDER DE PRODUCTOS
   ========================================================= */

.hero-slider-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient( circle at 82% 40%, rgba(237, 28, 36, 0.08), transparent 35% ), linear-gradient( 120deg, #ffffff 0%, #ffffff 49%, #faf4f2 100% );
}

.hero-slider-row {
    min-height: calc(100vh - 90px);
    padding-top: 25px;
    padding-bottom: 40px;
}

.hero-slider-copy {
    position: relative;
    z-index: 20;
}

.hero-slider-kicker {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--magic-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-slider-title {
    max-width: 610px;
    margin: 0 0 24px;
    color: var(--magic-black);
    font-size: clamp(50px, 5vw, 76px);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -3px;
}

    .hero-slider-title strong {
        display: block;
        min-height: 150px;
        margin-top: 10px;
        color: var(--magic-red);
        font-weight: 800;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

.hero-slider-description {
    max-width: 575px;
    min-height: 92px;
    margin-bottom: 30px;
    color: #575757;
    font-size: 17px;
    line-height: 1.75;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-slider-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-slider-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 34px;
}

    .hero-slider-benefits div {
        display: flex;
        align-items: center;
        gap: 7px;
        color: #444444;
        font-size: 13px;
        font-weight: 600;
    }

    .hero-slider-benefits i {
        color: var(--magic-red);
        font-size: 19px;
    }


/* =========================================================
   CONTENEDOR DEL SLIDER
   ========================================================= */

.product-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border-radius: 42px;
    background: linear-gradient( 145deg, rgba(255, 255, 255, 0.76), rgba(244, 228, 223, 0.90) );
}

.slider-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.slider-decoration-one {
    top: 45px;
    right: 55px;
    width: 310px;
    height: 310px;
    background-color: rgba(255, 255, 255, 0.72);
}

.slider-decoration-two {
    bottom: 90px;
    left: 50px;
    width: 135px;
    height: 135px;
    border: 23px solid rgba(237, 28, 36, 0.07);
}


/* =========================================================
   PRODUCTOS DEL SLIDER
   ========================================================= */

.product-slide {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 35px 70px 65px;
    opacity: 0;
    transform: translateX(90px) scale(0.94);
    transition: opacity 0.65s ease, transform 0.65s ease, visibility 0.65s ease;
}

    .product-slide.active {
        z-index: 5;
        visibility: visible;
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    .product-slide.leaving-left {
        visibility: visible;
        opacity: 0;
        transform: translateX(-90px) scale(0.94);
    }

    .product-slide.entering-left {
        transform: translateX(-90px) scale(0.94);
    }

.slider-product-image {
    display: block;
    width: auto;
    max-width: 88%;
    max-height: 570px;
    object-fit: contain;
    filter: drop-shadow(0 30px 28px rgba(0, 0, 0, 0.23));
    animation: sliderProductFloat 4.2s ease-in-out infinite;
}

.slider-product-info {
    position: absolute;
    right: 35px;
    bottom: 35px;
    z-index: 10;
    min-width: 185px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.80);
    border-radius: 17px;
    background-color: rgba(255, 255, 255, 0.91);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
}

    .slider-product-info span,
    .slider-product-info strong {
        display: block;
    }

    .slider-product-info span {
        margin-bottom: 4px;
        color: var(--magic-red);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.8px;
        text-transform: uppercase;
    }

    .slider-product-info strong {
        color: #222222;
        font-size: 17px;
    }

.slider-featured-label {
    position: absolute;
    top: 42px;
    right: 40px;
    z-index: 12;
    padding: 8px 15px;
    border-radius: 18px;
    color: #ffffff;
    background-color: var(--magic-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}


/* =========================================================
   FLECHAS
   ========================================================= */

.slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 50%;
    color: #222222;
    background-color: rgba(255, 255, 255, 0.93);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.11);
    font-size: 22px;
    transform: translateY(-50%);
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

    .slider-arrow:hover {
        color: #ffffff;
        background-color: var(--magic-red);
    }

.slider-arrow-left {
    left: 20px;
}

.slider-arrow-right {
    right: 20px;
}


/* =========================================================
   PUNTOS DEL SLIDER
   ========================================================= */

.slider-indicators {
    position: absolute;
    bottom: 27px;
    left: 50%;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 9px;
    transform: translateX(-50%);
}

.slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.22);
    transition: width 0.25s ease, border-radius 0.25s ease, background-color 0.25s ease;
}

    .slider-dot.active {
        width: 30px;
        border-radius: 10px;
        background-color: var(--magic-red);
    }


/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes sliderProductFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

.slider-text-changing {
    opacity: 0;
    transform: translateY(10px);
}


/* =========================================================
   TABLETAS
   ========================================================= */

@media (max-width: 991px) {

    .hero-slider-row {
        min-height: auto;
    }

    .hero-slider-copy {
        padding-top: 45px;
        padding-bottom: 35px;
        text-align: center;
    }

    .hero-slider-title,
    .hero-slider-description {
        margin-right: auto;
        margin-left: auto;
    }

        .hero-slider-title strong {
            min-height: auto;
        }

    .hero-slider-actions,
    .hero-slider-benefits {
        justify-content: center;
    }

    .product-slider {
        min-height: 575px;
    }

    .slider-product-image {
        max-height: 505px;
    }
}


/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 576px) {

    .hero-slider-title {
        font-size: 47px;
        letter-spacing: -2px;
    }

    .hero-slider-description {
        min-height: 120px;
        font-size: 16px;
    }

    .hero-slider-actions {
        flex-direction: column;
    }

    .hero-slider-benefits {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .product-slider {
        min-height: 485px;
        border-radius: 25px;
    }

    .product-slide {
        padding: 30px 45px 75px;
    }

    .slider-product-image {
        max-width: 92%;
        max-height: 405px;
    }

    .slider-arrow {
        width: 43px;
        height: 43px;
        font-size: 18px;
    }

    .slider-arrow-left {
        left: 10px;
    }

    .slider-arrow-right {
        right: 10px;
    }

    .slider-product-info {
        right: 15px;
        bottom: 50px;
        left: 15px;
        min-width: auto;
        padding: 11px 15px;
        text-align: center;
    }

    .slider-featured-label {
        top: 18px;
        right: 18px;
    }

    .slider-indicators {
        bottom: 18px;
    }
}


/* =========================================================
   MODELOS DESTACADOS
   ========================================================= */

.featured-models {
    padding: 95px 0;
    background-color: #ffffff;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 48px;
}

    .section-heading span {
        color: var(--magic-red);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1.3px;
        text-transform: uppercase;
    }

    .section-heading h2 {
        margin-top: 10px;
        margin-bottom: 15px;
        font-size: clamp(35px, 4vw, 52px);
        font-weight: 750;
        letter-spacing: -1.7px;
    }

    .section-heading p {
        color: #666666;
        font-size: 17px;
    }

.model-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-radius: 23px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

    .model-card:hover {
        border-color: transparent;
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
        transform: translateY(-8px);
    }

.model-image-area {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 370px;
    padding: 25px 20px 0;
    background: linear-gradient( 145deg, #fbfbfb, #f5eeeb );
}

    .model-image-area img {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 340px;
        object-fit: contain;
        filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.17));
        transition: transform 0.3s ease;
    }

.model-card:hover .model-image-area img {
    transform: scale(1.04);
}

.model-card-body {
    padding: 24px;
}

    .model-card-body span {
        color: var(--magic-red);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .model-card-body h3 {
        min-height: 52px;
        margin-top: 8px;
        margin-bottom: 16px;
        color: #222222;
        font-size: 19px;
        font-weight: 750;
        line-height: 1.35;
    }

    .model-card-body a {
        color: var(--magic-red);
        font-size: 13px;
        font-weight: 800;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 35px 0;
    color: rgba(255, 255, 255, 0.78);
    background-color: #171717;
    font-size: 14px;
}

    .site-footer strong {
        display: block;
        margin-bottom: 5px;
        color: #ffffff;
        font-size: 21px;
    }

/* Ajustes responsive de modelos destacados */
@media (max-width: 576px) {
    .featured-models {
        padding: 70px 0;
    }

    .model-image-area {
        height: 320px;
    }

        .model-image-area img {
            max-height: 290px;
        }
}
