/* ==========================================================================
KROMA DESIGNS - MASTER CSS (Sitio Principal + Landing Page)
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* --- 1. CONFIGURACIÓN GLOBAL Y VARIABLES --- */
:root {
    /* Colores del sitio principal */
    --brand-mint: #e5f2e9;
    --brand-lavender: #dfd6eb;
    --brand-warm-grey: #c8c3bb;
    --text-main: #383838;
    --text-muted: #64748b;

    /* Colores corporativos y Landing Page */
    --kroma-accent: #993955;
    --kroma-gold: #d4af37;
    --dark-bg: #121212;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Termina', 'Inter', sans-serif;
    color: var(--text-main);
    background-color: white;
    overflow-x: hidden;
}

/* --- 2. TIPOGRAFÍA --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Termina', sans-serif !important;
}

h2 {
    font-weight: 400 !important;
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.service-title {
    font-weight: 400;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.service-subtitle {
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- 3. NAVEGACIÓN (MAIN SITE) --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* --- 4. SECCIONES, ESPACIOS Y FONDOS --- */
.section-padding,
.servicios-bloque-espacio {
    padding: 180px 0 !important;
}

.my-120 {
    margin-top: 120px !important;
    margin-bottom: 120px !important;
}

/* Degradados Sitio Principal */
#proyectos,
.bg-gradient-servicios {
    background: linear-gradient(176deg, var(--brand-mint) 26%, var(--brand-lavender) 72%);
}

.bg-gradient-enfoque {
    background: linear-gradient(176deg, var(--brand-lavender) 26%, var(--brand-mint) 72%);
}

.service-block:nth-of-type(odd) {
    background: linear-gradient(176deg, #e5f2e9 26%, #dfd6eb 72%);
}

.service-block:nth-of-type(even) {
    background: linear-gradient(176deg, #dfd6eb 26%, #e5f2e9 72%);
}

/* --- 5. BOTONES GENERALES --- */
.btn-primary,
.btn-kroma {
    font-family: 'Termina', sans-serif;
    background-color: var(--brand-lavender) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 14px 40px;
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main) !important;
    border-radius: 50px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover,
.btn-kroma:hover {
    background-color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.btn-cta-spacing {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* --- 6. HERO SECTIONS (SITIO PRINCIPAL) --- */
.hero-section,
.services-hero,
.projects-hero {
    background: linear-gradient(135deg, var(--brand-lavender) 0%, var(--brand-mint) 100%);
    padding: 120px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-section h1,
.services-hero h1,
.projects-hero h1 {
    font-weight: 300 !important;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* --- 7. CARRUSELES --- */
.carousel,
#carouselKroma {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    overflow: hidden;
}

.carousel-item img,
#carouselKroma .carousel-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
}

.service-block .carousel-item img {
    aspect-ratio: 4 / 3;
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.carousel-caption {
    bottom: 2%;
    padding: 1rem;
    border-radius: 20px;
    max-width: 45%;
    max-height: 30%;
    
    /* ESTAS SON LAS LÍNEAS IMPORTANTES QUE DEBES AGREGAR: */
    background-color: rgba(0, 0, 0, 0.2) !important; /* Negro al 50% de opacidad */
    backdrop-filter: blur(5px); /* Efecto borroso tipo vidrio */
    -webkit-backdrop-filter: blur(5px); /* Para que funcione en iPhone/Safari */
}

/* --- 8. TARJETAS (SERVICIOS Y TESTIMONIOS) --- */
.custom-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    background: white;
}

.custom-card p {
    font-weight: 500;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

#testimonios {
    background-color: #fcfcfc;
}

.review-card {
    background: white;
    padding: 50px;
    border-radius: 35px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-card:hover {
    border-color: var(--brand-lavender);
    box-shadow: 0 20px 40px rgba(223, 214, 235, 0.3);
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
    margin-bottom: 30px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h5 {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-icon {
    color: var(--brand-lavender);
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

/* --- 9. PÁGINA DE PROYECTOS (PORTFOLIO) --- */
.service-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: white;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card:hover .service-card-overlay {
    background: rgba(223, 214, 235, 0.85);
    color: var(--text-main);
}

#projectsView {
    display: none;
}

.project-thumb {
    border-radius: 25px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f8f9fa;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-thumb:hover img {
    transform: scale(1.05);
}

.btn-back {
    background: none;
    border: 1px solid var(--text-main);
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
    transition: 0.3s;
}

.btn-back:hover {
    background: var(--text-main);
    color: white;
}

.modal-content {
    border-radius: 40px;
    border: none;
    overflow: hidden;
    background: linear-gradient(135deg, white 0%, var(--brand-mint) 100%);
}

.modal-header-img,
.modal-header-video {
    width: 100%;
    height: 450px;
    object-fit: cover;
    background-color: #000;
}

.modal-body {
    padding: 60px;
}

.realization-text {
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
}

.services-tag {
    display: inline-block;
    background: var(--brand-mint);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* --- 10. LISTAS Y DETALLES --- */
.service-details,
.card-list {
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 0;
    list-style: none;
}

.service-details li,
.card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-details li::before,
.card-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand-lavender);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- 11. TARJETAS DE PAQUETES (PRICING) --- */
.pricing-card {
    background: #fff;
    border-radius: 30px;
    padding: 3.5rem 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: none !important;
}

.pricing-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card-kroma-gradient {
    background: linear-gradient(168deg, rgba(153, 57, 85, 1) 34%, rgba(138, 52, 199, 1) 82%);
    color: #ffffff !important;
    border: none !important;
}

.card-kroma-gradient h4,
.card-kroma-gradient .pricing-price,
.card-kroma-gradient .pricing-features li,
.card-kroma-gradient .pricing-features li i,
.card-kroma-gradient p {
    color: #ffffff !important;
}

.pricing-price {
    font-size: 3rem;
    font-family: 'Termina', sans-serif;
    font-weight: 300;
    margin: 1.5rem 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    display: flex;
    align-items: start;
    line-height: 1.5;
    padding-left: 0;
}

.pricing-features li::before {
    content: none !important;
}

.pricing-features li i {
    color: var(--kroma-accent);
    margin-right: 12px;
    font-size: 1.2rem;
    margin-top: -3px;
}

.card-kroma-gradient .pricing-features li i {
    color: rgba(255, 255, 255, 0.9) !important;
}

.card-kroma-gradient .btn {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
}

/* --- 12. CONTACTO Y FOOTER --- */
.contact-section {
    background: linear-gradient(135deg, var(--brand-warm-grey) 0%, #f8f9fa 100%);
}

.form-control,
.form-select {
    border: 2px solid rgba(0, 0, 0, 0.05);
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--kroma-accent);
    box-shadow: 0 0 0 0.25rem rgba(153, 57, 85, 0.1);
    background-color: #ffffff;
}

.bi-icon-large {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: block;
}

.footer-custom {
    background-color: var(--brand-warm-grey);
    padding: 80px 0;
    color: var(--text-main);
    text-align: center;
}

.footer-custom a {
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
}

.footer-custom a:hover {
    opacity: 0.6;
}

/* ==========================================================================
   13. ESTILOS EXCLUSIVOS LANDING PAGE (Alta Conversión)
   ========================================================================== */

/* Clases Útiles Landing */
.text-kroma-accent {
    color: var(--kroma-accent) !important;
}

.tracking-wide {
    letter-spacing: 0.15em;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Header Flotante */
.landing-header {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo-kroma {
    filter: brightness(0) invert(1);
}

/* Hero Inmersivo Parallax */
.hero-immersive {
    position: relative;
    padding: 200px 0 160px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(18, 18, 18, 1) 100%);
    z-index: 0;
}

.badge-premium {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
}

/* Botones con Destello (CTA Landing) */
.btn-kroma-glow,
.btn-kroma-form-cta {
    background: linear-gradient(168deg, rgba(153, 57, 85, 1) 60%, rgba(223, 215, 236, 1) 100%);
    color: #ffffff !important;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(153, 57, 85, 0.4);
}

.btn-kroma-glow:hover,
.btn-kroma-form-cta:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(153, 57, 85, 0.6);
    background: linear-gradient(135deg, var(--kroma-accent) 0%, var(--kroma-gold) 100%) !important;
    color: #ffffff !important;
}

/* Sección Oscura y Tarjetas Cristal */
.bg-dark {
    background-color: var(--dark-bg) !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Iconos y Metodología */
.feature-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.image-reveal img {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease;
}

.image-reveal:hover img {
    transform: scale(1.02);
}

/* Animaciones */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   14. MEDIA QUERIES (RESPONSIVE PARA TODAS LAS PÁGINAS)
   ========================================================================== */

@media (max-width: 991px) {
    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {

    .section-padding,
    .servicios-bloque-espacio {
        padding: 80px 0 !important;
    }

    .hero-section,
    .services-hero,
    .projects-hero {
        padding: 80px 0;
        min-height: auto;
    }

    .hero-section h1,
    .services-hero h1,
    .projects-hero h1 {
        font-size: 2.2rem;
    }

    .service-title {
        font-size: 1.8rem;
    }

    .carousel-item img {
        height: 280px;
    }

    .sub-project-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.65rem;
    }

    .modal-header-img,
    .modal-header-video {
        height: 250px;
    }

    /* Ajustes móviles exclusivos Landing Page */
    .hero-immersive {
        padding: 150px 0 100px;
        background-attachment: scroll;
        /* Desactiva parallax para no trabar el móvil */
    }

    .hero-content .display-3 {
        font-size: 2.5rem;
    }

    .btn-kroma-glow,
    .btn-kroma-form-cta {
        width: 100%;
        padding: 18px 20px !important;
    }
}