/* ================================
   VARIABLES DE COLOR
================================ */
:root {
    --gris-oscuro: #2f2f2f;
    --gris-base: rgba(80,80,80,0.8);
    --gris-claro: #f4f6f6;

    --verde-agua: #3ccfcf;
    --verde-agua-hover: #2bb5b5;

    --texto-oscuro: #333;
    --texto-claro: #ffffff;

    --fondo-suave: #f1f5f5;
    --fondo-acento: #eef7f6;

    --texto-oscuro: #333;
    --texto-claro: #ffffff;
}

/* ================================
   RESET BÁSICO
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================================
   NAVBAR
================================ */
.custom-navbar {
    background: linear-gradient(
        180deg,
        rgba(80,80,80,0.92),
        rgba(60,60,60,0.92)
    );
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 22px rgba(0,0,0,0.28);
    padding-top: 6px;
    padding-bottom: 6px;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-text {
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.brand-text:hover {
    color: var(--verde-agua);
}

.navbar-dark .nav-link {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    transition: 0.3s;
}

.navbar-dark .nav-link:hover {
    color: var(--verde-agua);
}

/* CTA Navbar dinámico */
.cta-navbar {
    background-color: #2bbbad !important; /* verde agua */
    border-color: #2bbbad !important;
    color: #fff !important;
}

/* Hover / Focus / Active */
.cta-navbar:hover,
.cta-navbar:focus,
.cta-navbar:active {
    background-color: #249f93 !important; /* verde agua más oscuro */
    border-color: #249f93 !important;
    color: #fff !important;
}

.cta-navbar {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.35s ease;
}

/* CTA Navbar - visible al hacer scroll */
.cta-navbar.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================================
            LOGO NAVBAR 
================================ */
.logo-navbar {
    max-height: 42px;     /* 🔥 controla el tamaño */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Evita que el navbar crezca */
.navbar {
    min-height: 64px;
}

/* Mobile */
@media (max-width: 768px) {
    .logo-navbar {
        max-height: 36px;
    }
}

/* ================================
   HERO
================================ */
.hero {
    height: 100vh;
    background: url('../img/portada 1.jpg') center/cover no-repeat;
}

.overlay {
    background: linear-gradient(
        rgba(0,0,0,0.6),
        rgba(0,0,0,0.7)
    );
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--texto-claro);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* ================================
   BOTONES
================================ */
.btn-success {
    background-color: var(--verde-agua);
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(60,207,207,0.35);
    transition: 0.3s;
}

.btn-success:hover {
    background-color: var(--verde-agua-hover);
    transform: translateY(-2px);
}

/* ================================
   SECCIONES
================================ */
.section {
    padding: 80px 0;
    background-color: #ffffff;
}

.bg-light {
    background: linear-gradient(
        180deg,
        var(--gris-claro),
        var(--fondo-acento)
    ) !important;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--gris-oscuro);
}

/* ================================
   SERVICIOS
================================ */
.service-card {
    padding: 35px 25px;
    text-align: center;
    border: none;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        #ffffff,
        var(--fondo-suave)
    );
    box-shadow: 0 14px 38px rgba(0,0,0,0.08);
    transition: 0.35s ease;
}

.service-card i {
    font-size: 45px;
    color: var(--verde-agua);
    margin-bottom: 18px;
}

.service-card h4 {
    font-weight: 600;
    color: var(--gris-oscuro);
}

.service-card p {
    color: #666;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* ================================
   GALERÍA PREMIUM – PROYECTOS
================================ */

/* Contenedor para efectos */
.gallery-img {
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    box-shadow: 0 14px 35px rgba(0,0,0,0.18);
}

/* Hover premium */
.gallery-img:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

/* ================================
   EFECTO DE APARICIÓN SCROLL
================================ */

.reveal-zoom {
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
}

/*CARDS DIVISIONES*/

.division-card {
    padding: 35px 25px;
}

.division-img {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.5s ease;
}

.division-card:hover .division-img {
    transform: scale(1.05);
}


/* ================================
   OVERLAY SUTIL (LUJO)
================================ */

.gallery-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.25)
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 18px;
}

.gallery-img:hover::after {
    opacity: 1;
}

/* ================================
   WHATSAPP FLOTANTE
================================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    background-color:  #1ebe5d;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: 0.3s ease;
    animation: whatsappPulse 2s infinite;
    text-decoration: none !important;
}

.whatsapp-float:hover {
    background-color:  #1ebe5d;
    transform: scale(1.15);
}

.whatsapp-float i {
    line-height: 1;
}

/* PULSO */
@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(60,207,207,0.35); }
    70% { box-shadow: 0 0 0 18px rgba(60,207,207,0); }
    100% { box-shadow: 0 0 0 0 rgba(60,207,207,0); }
}

/*El Estándar A Möbel Studio*/

.service-card {
    border: none;
    border-radius: 16px;
    transition: transform .4s ease, box-shadow .4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0,0,0,.15);
}


/* ================================
   FOOTER
================================ */
footer {
    background: linear-gradient(
        180deg,
        #303030,
        #252525
    );
    color: var(--texto-claro);
    padding: 60px 0 20px;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

footer p {
    opacity: 0.85;
}

footer .social {
    font-size: 22px;
    margin-right: 15px;
    color: rgba(255,255,255,0.85);
    transition: 0.3s;
}

footer .social:hover {
    color: var(--verde-agua);
}

footer hr {
    border-color: rgba(255,255,255,0.15);
}

footer .reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {

    .hero h1 {
        font-size: 2.2rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
    }
}

/* ================================
   MICRO-ANIMACIONES SCROLL
================================ */

/* Estado inicial */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

/* Cuando entra en pantalla */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes suaves */
.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-left.active,
.reveal-right.active {
    transform: translateX(0);
}

/* Zoom elegante */
.reveal-zoom {
    transform: scale(0.95);
}

.reveal-zoom.active {
    transform: scale(1);
}

/* Delay opcional */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
