/* ELIMINAR O COMENTAR LA LÍNEA DE GOOGLE FONTS AHORA */
/* @import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;700&display=swap'); */

/* DEFINICIÓN DE FUENTES LOCALES (Ruta correcta: ../Sora/static/nombre-archivo.ttf) */

/* 1. Sora Regular (Peso 400) */
@font-face {
    font-family: 'Sora';
    /* Ruta: Subir a la carpeta raíz (..), entrar a Sora/static/ */
    src: url('../Sora/static/Sora-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* 2. Sora SemiBold (Peso 600 - Usado a menudo por fw-semibold de Bootstrap) */
@font-face {
    font-family: 'Sora';
    src: url('../Sora/static/Sora-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* 3. Sora Bold (Peso 700 - Usado por h1, h2, h3, h4, h5, h6 y fw-bold de Bootstrap) */
@font-face {
    font-family: 'Sora';
    src: url('../Sora/static/Sora-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #0d6efd;
    --dark: #21252f;
    --body: #333;
    --white: #ffffff;
    --box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    /* 🔴 PASO 1: Nueva variable para el color alternativo */
    --primary-alt: #ED2F59;
    /* 💡 NUEVA VARIABLE: Color claro para el texto sobre fondos oscuros */
    --footer-link: #aaa;
    /* Un gris claro visible sobre fondo oscuro */
}

body {
    font-family: "Sora", sans-serif;
    line-height: 1.7;
    color: var(--body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-4 {
    color: var(--dark);
    font-weight: 700;
}

a {
    color: var(--dark);
    text-decoration: none;
}

img {
    width: 100%;
}

.navbar {
    box-shadow: var(--box-shadow);
}

.logo {
    width: 250px;
}

.navbar .nav-link {
    font-size: 16px;
    font-weight: 700;
}

.navbar .nav-link.active {
    color: var(--primary) !important;
}

.btn {
    padding: 10px 18px;
    border-width: 2px;
}

.hero {
    background-image: url(../img/cortinas-roller-a-medida-en-una-sala-moderna-abcdecor-2026.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 2;
    /* 👇 LÍNEA AÑADIDA: Altura Mínima 👇 */
    min-height: 800px;
}

.hero::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(21, 20, 51, 0.506);
    z-index: -1;
}

section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.card-effect {
    box-shadow: var(--box-shadow);
    background-color: var(--white);
    padding: 25px;
    transition: all 0.35s ease;
}

.card-effect:hover {
    box-shadow: none;
    transform: translateY(5px);
}

.iconbox {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--white);
    font-size: 32px;
    border-radius: 100px;
    flex: none;
}


.service {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.service::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: -100%;
    left: 0;
    background-color: var(--primary);
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}


.service:hover .iconbox {
    background-color: var(--white);
    color: var(--primary);
}

.service:hover h5,
.service:hover p {
    color: var(--white);
    ;
}

.service:hover::after {
    opacity: 1;
    top: 0;
}

.col-img {
    background-image: url(../img/cortinas-roller-screen/compra_cortinas_y_persianas_en_abcdecor_peru_2.jpg);
    background-position: center;
    background-size: cover;
    min-height: 500px;
}

.project {
    position: relative;
    overflow: hidden;
}

.project .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(21, 20, 51, 0.13);
    padding: 30px;
    display: flex;
    align-items: flex-end;
    transition: all 0.4s ease;
    opacity: 0;
}

.project img {
    transition: all 0.4s ease;
}

.project:hover .overlay {
    opacity: 1;
}

.project:hover img {
    transform: scale(1.1);
}


.pricing i {
    font-size: 20px;
    color: var(--primary);
}

.pricing ul li {
    margin-top: 8px;
}

.team-member img {
    width: 150px;
    height: 150px;
    height: 150px;
    border-radius: 100px;
}


.social-icons {
    display: flex;
    justify-content: center;
}

.social-icons a {
    width: 34px;
    height: 34px;
    background-color: var(--primary);
    border-radius: 2px solid var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    margin-left: 5px;
    transition: all 0.4s ease;
    border: 2px solid var(--primary);
}

.social-icons a:hover {
    color: var(--primary);
    background-color: transparent;
    border-color: var(--primarys);
}


form input.form-control {
    height: 56px;
}

form .form-control {
    border: transparent;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.02);
}


.footer-top {
    padding-top: 90px;
    padding-bottom: 90px;
    background-color: var(--dark);
    color: var(--footer-link);
}

.footer-top a {
    color: var(--footer-link);
}

.footer-top a:hover {
    color: var(--white);
}

.footer-bottom {
    background-color: #242933;
    color: var(--white);
}

/* Añade un fondo oscuro semi-transparente a los controles */
.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    /* Controla el área sensible al clic */
    background: rgba(0, 0, 0, 0.2);
    /* Fondo semi-transparente */
    opacity: 0.8;
    /* Asegura que el fondo sea visible */
    transition: opacity 0.3s;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    /* Se vuelve opaco al pasar el mouse */
}

/* 🔴 PASO 2: Definición de la clase de utilidad */
.text-primary2 {
    /* Usamos la variable que definimos */
    color: var(--primary-alt) !important;
}

/* 2. Regla para el enlace al pasar el ratón */
.link-senet-hover:hover {
    /* Usamos la variable de color alternativo que es tu rojo */
    color: var(--primary-alt) !important;

    /* Añadir transición para un efecto más suave (opcional) */
    transition: color 0.3s ease;
}

/*
 * ESTILOS DE TRANSICIÓN INVERSA (BLANCO SÓLIDO A TRANSPARENTE)
 */

/* 1. Estado Inicial (Sólido por defecto gracias a bg-white en el HTML) */
#mainNav {
    /* Mantiene el fondo blanco inicial (dado por bg-white) y añade una transición */
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    /* Sombra visible inicialmente */
}

/* 2. Estado de Scroll (Se aplica cuando el JS añade la clase) */
#mainNav.navbar-scrolled {
    /* Fondo Blanco con Transparencia (50% de opacidad) */
    background-color: rgba(255, 255, 255, 0.5) !important;
    /* Quitar la sombra */
    box-shadow: none !important;
}