/* ============================================
   OBRAS Y REFORMAS GUTIÃ‰RREZ S.L.
   Estilos principales con degradados premium
============================================ */

:root {
    --primary-blue: #1e3a6f;
    --primary-blue-dark: #152847;
    --primary-blue-light: #2d4d8a;
    --orange: #ff6b35;
    --orange-dark: #e55a2a;
    --orange-light: #ff8558;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --text-dark: #1e3a6f;
    --text-light: #5a5a5a;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #1e3a6f 0%, #2d4d8a 100%);
    --gradient-orange: linear-gradient(135deg, #ff6b35 0%, #ff8558 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(30, 58, 111, 0.95) 0%, rgba(45, 77, 138, 0.85) 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   HEADER CON DEGRADADO
============================================ */
header {
    background: var(--gradient-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.7rem 0;
    box-shadow: var(--shadow-lg);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 100px;
    height: 50px;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.3));
}

.logo-text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 3px;
    margin-top: -2px;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .logo-image {
        height: 45px;
    }
}


.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.3rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-header {
    background: var(--gradient-orange);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* ============================================
   HERO SLIDER CON DEGRADADOS Y SOMBRAS
============================================ */
.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 650px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 111, 0.85) 0%, rgba(255, 107, 53, 0.3) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 3%;
    transform: translateY(-50%);
    max-width: 650px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

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

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--white);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1.1rem 2.5rem;
    border: 2px solid var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.hero-slider-controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot.active {
    background: var(--orange);
    border-color: var(--white);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ============================================
   SERVICES SECTION CON DEGRADADOS
============================================ */
.services {
    padding: 6rem 3%;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-orange);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-top: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.35s ease;

    display: flex;
    flex-direction: column;
    justify-content: space-between; /* mantiene estructura */
    height: 100%;
}

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

.service-title {
    min-height: 45px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}


.service-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 4px 10px rgba(255, 107, 53, 0.3));
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 2rem;
}


.btn-service {
    background: var(--gradient-orange);
    color: white;
    padding: 6px 14px; /* m�s peque�o */
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem; /* texto m�s peque�o */
    margin: 0 auto;
    margin-top: auto;
    display: inline-block;
    transition: all 0.25s ease;
}

.btn-service:hover {
    transform: translateY(-2px);
}

.service-card .btn-service {
    background: var(--gradient-orange);
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}



.service-card .btn-service:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

/* ============================================
   PROJECTS SECTION � DISE�O PREMIUM
   A�adir al final de styles.css
============================================ */

.projects {
    padding: 7rem 3%;
    background: linear-gradient(160deg, #0d1f42 0%, #1e3a6f 50%, #0d1f42 100%);
    position: relative;
    overflow: hidden;
}

/* Fondo decorativo */
.projects::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.projects::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 77, 138, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

/* ---- HEADER ---- */
.projects-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.projects-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 50px;
}

.projects-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

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

.projects-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.projects-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.projects-divider span:not(.projects-divider-diamond) {
    width: 60px;
    height: 1px;
    background: rgba(255, 107, 53, 0.5);
}

.projects-divider-diamond {
    color: var(--orange);
    font-size: 0.6rem;
}

/* ---- CAROUSEL WRAPPER ---- */
.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2;
}

.carousel-container {
    overflow: hidden;
    padding: 1rem 0 1.5rem;
}

.projects-carousel {
    display: flex;
    gap: 1.8rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ---- TARJETAS desktop ---- */
.project-card {
    min-width: calc(33.333% - 1.2rem);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

/* =========================================
   MÓVIL: grid vertical, una tarjeta por fila
   Sin JS, sin scroll horizontal, sin conflictos
========================================= */
@media (max-width: 768px) {

    /* Ocultar botones y dots — no hacen falta */
    .carousel-btn {
        display: none !important;
    }

    .carousel-dots {
        display: none !important;
    }

    .carousel-wrapper {
        margin: 0;
    }

    .carousel-container {
        overflow: visible;
        padding: 0.5rem 0 1rem;
    }

    /* Convertir flex horizontal → grid vertical */
    .projects-carousel {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
        transform: none !important;
        transition: none !important;
        width: 100% !important;
    }

    /* Tarjeta ocupa todo el ancho disponible */
    .project-card {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        flex-shrink: unset;
    }

    .project-card-inner {
        height: 280px;
        border-radius: 16px;
    }
}

.project-card-inner {
    position: relative;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-card:hover .project-card-inner {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    filter: brightness(0.75);
}

.project-card:hover .project-image {
    transform: scale(1.08);
    filter: brightness(0.6);
}

/* Gradiente inferior */
.project-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(
        to top,
        rgba(10, 20, 45, 0.97) 0%,
        rgba(10, 20, 45, 0.7) 50%,
        transparent 100%
    );
    transition: height 0.4s ease;
}

.project-card:hover .project-gradient {
    height: 90%;
}

/* Info de la tarjeta */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    z-index: 2;
}

.project-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.35);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 0.9rem;
}

.project-name {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.8rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.project-line {
    width: 0;
    height: 2px;
    background: var(--gradient-orange);
    border-radius: 2px;
    margin-bottom: 0.8rem;
    transition: width 0.4s ease 0.1s;
}

.project-card:hover .project-line {
    width: 50px;
}

.project-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.project-card:hover .project-desc {
    opacity: 1;
    transform: translateY(0);
}

/* N�mero decorativo */
.project-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.07);
    line-height: 1;
    letter-spacing: -2px;
    z-index: 2;
    transition: color 0.3s ease;
    font-variant-numeric: tabular-nums;
}

.project-card:hover .project-number {
    color: rgba(255, 107, 53, 0.15);
}

/* ---- BOTONES CAROUSEL ---- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--gradient-orange);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.carousel-btn.prev {
    left: -26px;
}

.carousel-btn.next {
    right: -26px;
}

/* ---- DOTS ---- */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-dot.active {
    background: var(--orange);
    width: 28px;
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.6);
}

/* ---- STATS ---- */
.projects-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.stat-divider {
    color: rgba(255, 107, 53, 0.35);
    font-size: 0.7rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .project-card {
        min-width: calc(50% - 0.9rem);
    }
    .projects-title {
        font-size: 2.8rem;
    }
    .carousel-btn.prev { left: -10px; }
    .carousel-btn.next { right: -10px; }
}

@media (max-width: 768px) {
    .projects-title {
        font-size: 2.2rem;
    }
    .projects-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .stat-divider { display: none; }
}

/* ============================================
   TESTIMONIALS � FONDO CLARO PREMIUM
   Reemplaza los estilos .testimonials existentes
   en styles.css
============================================ */

.testimonials {
    padding: 7rem 3%;
    background: linear-gradient(160deg, #f8f9fc 0%, #ffffff 50%, #f0f3f8 100%);
    position: relative;
    overflow: hidden;
}

/* Comilla gigante decorativa de fondo */
.testimonials-bg-quote {
    position: absolute;
    top: -40px;
    left: 3%;
    font-size: 28rem;
    font-weight: 900;
    color: rgba(30, 58, 111, 0.04);
    line-height: 1;
    font-family: Georgia, serif;
    pointer-events: none;
    user-select: none;
}

/* Borde superior decorativo */
.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--orange) 30%, var(--primary-blue) 70%, transparent 100%);
}

/* ---- HEADER ---- */
.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.testimonials-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(255, 107, 53, 0.35);
    border-radius: 50px;
}

.testimonials-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

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

.testimonials-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

.testimonials-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonials-divider span:not(.testimonials-divider-diamond) {
    width: 60px;
    height: 1px;
    background: rgba(255, 107, 53, 0.4);
}

.testimonials-divider-diamond {
    color: var(--orange);
    font-size: 0.6rem;
}

/* ---- GRID ---- */
.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
    align-items: center;
}

/* ---- TARJETAS ---- */
.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(30, 58, 111, 0.08);
    box-shadow: 0 4px 30px rgba(30, 58, 111, 0.07);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(30, 58, 111, 0.13);
    border-color: rgba(255, 107, 53, 0.15);
}

/* Tarjeta central destacada */
.testimonial-card--featured {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.04);
    box-shadow: 0 20px 60px rgba(30, 58, 111, 0.25);
}

.testimonial-card--featured:hover {
    transform: scale(1.04) translateY(-8px);
    box-shadow: 0 30px 80px rgba(30, 58, 111, 0.35);
}

.testimonial-card--featured::before {
    background: linear-gradient(90deg, var(--orange) 0%, #fff 100%);
}

.testimonial-card--featured .testimonial-quote-icon,
.testimonial-card--featured .testimonial-text,
.testimonial-card--featured .testimonial-author {
    color: var(--white);
}

.testimonial-card--featured .testimonial-project {
    color: rgba(255,255,255,0.6);
}

.testimonial-card--featured .testimonial-avatar {
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

/* Comilla decorativa */
.testimonial-quote-icon {
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--orange);
    line-height: 0.8;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.6;
}

.stars {
    color: #f5a623;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Footer de la tarjeta */
.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(30, 58, 111, 0.08);
}

.testimonial-card--featured .testimonial-footer {
    border-top-color: rgba(255,255,255,0.15);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-blue);
    margin: 0;
}

.testimonial-project {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 0;
    margin-top: 0.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- RATING BAR ---- */
.testimonials-rating-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 420px;
    margin: 0 auto;
    background: white;
    border: 1px solid rgba(30, 58, 111, 0.1);
    border-radius: 50px;
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(30, 58, 111, 0.08);
    position: relative;
    z-index: 2;
}

.rating-text {
    font-size: 0.88rem;
    color: var(--text-light);
}

.rating-text strong {
    color: var(--primary-blue);
}

.rating-stars-small {
    color: #f5a623;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .testimonials-title { font-size: 2.6rem; }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
    .testimonial-card--featured {
        transform: scale(1);
    }
    .testimonial-card--featured:hover {
        transform: translateY(-8px);
    }
    .testimonials-title { font-size: 2rem; }
    .testimonials-rating-bar { flex-wrap: wrap; text-align: center; }
}
/* ============================================
   CONTACT � REDISE�O CON FONDO DEGRADADO
   Pegar al final de styles.css
============================================ */

.contact {
    padding: 7rem 3%;
    background: linear-gradient(160deg, #f8f9fc 0%, #eef1f7 50%, #e4e9f2 100%);
    position: relative;
    overflow: hidden;
}

/* Decoraci�n de fondo */
.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(30, 58, 111, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.contact .section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -1px;
}

.contact .section-header h2::after {
    background: var(--gradient-orange);
}

.contact-description {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Contenedor */
.contact-container {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Formulario */
.contact-form {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow:
        0 4px 6px rgba(30, 58, 111, 0.04),
        0 20px 60px rgba(30, 58, 111, 0.10),
        0 0 0 1px rgba(30, 58, 111, 0.06);
    display: grid;
    gap: 1.4rem;
    position: relative;
}

/* L�nea naranja decorativa arriba del formulario */
.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 3rem;
    right: 3rem;
    height: 3px;
    background: var(--gradient-orange);
    border-radius: 0 0 4px 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border: 1.5px solid #dde3ef;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.97rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: #fafbfd;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #a0aab8;
    font-size: 0.93rem;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.10);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

/* Bot�n submit */
.submit-btn {
    background: var(--gradient-orange);
    color: var(--white);
    padding: 1.1rem 3rem;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    justify-self: end;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.35);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.5);
}

.submit-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* ============================================
   FOOTER � SEPARACI�N VISUAL CON EL CONTACT
============================================ */

footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3.5rem 3% 2rem;
    position: relative;
    border-top: 3px solid rgba(255, 107, 53, 0.5);
}

/* L�nea naranja sutil en la parte superior del footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-orange);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--gradient-orange);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 2rem 1.5rem;
    }
    .submit-btn {
        justify-self: stretch;
        text-align: center;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}
/* ============================================
   WHATSAPP FLOAT BUTTON
============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.7);
}



.footer-email {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}






 .service-detail {
            padding: 6rem 3%;
            background: linear-gradient(180deg, var(--white) 0%, var(--light-bg) 100%);
        }

        .service-hero {
            max-width: 1400px;
            margin: 0 auto 4rem;
            text-align: center;
        }

        .service-hero h1 {
            font-size: 3.5rem;
            font-weight: 800;
            color: var(--primary-blue);
            margin-bottom: 1rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }


.service-content {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}


.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

        .service-text {
            background: var(--white);
            padding: 3rem;
            border-radius: 20px;
            box-shadow: var(--shadow-lg);
        }

        .service-text h2 {
            font-size: 2rem;
            color: var(--primary-blue);
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 1rem;
        }

        .service-text h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--gradient-orange);
            border-radius: 2px;
        }

        .service-text p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-light);
            margin-bottom: 1.5rem;
        }

        .service-text h3 {
            font-size: 1.5rem;
            color: var(--primary-blue);
            margin: 2rem 0 1rem;
        }

        .service-text ul {
            list-style: none;
            padding: 0;
        }

        .service-text li {
            padding: 0.8rem 0;
            padding-left: 2rem;
            position: relative;
            font-size: 1.05rem;
            color: var(--text-light);
            line-height: 1.6;
        }

        .service-text li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--orange);
            font-weight: bold;
            font-size: 1.3rem;
        }

.service-image-placeholder {
    order: -1;
    background: var(--light-bg);
    border-radius: 20px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 3px dashed var(--orange);
}

        .image-placeholder-text {
            text-align: center;
            color: var(--text-light);
            padding: 2rem;
        }

        .image-placeholder-text h3 {
            font-size: 1.5rem;
            color: var(--primary-blue);
            margin-bottom: 1rem;
        }

        .back-btn {
            display: inline-block;
            background: var(--gradient-primary);
            color: var(--white);
            padding: 1rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            margin-top: 2rem;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-md);
        }

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

        @media (max-width: 1024px) {
            .service-content {
                grid-template-columns: 1fr;
            }

            .service-image-placeholder {
                order: -1;
                position: relative;
                top: 0;
                height: 400px;
            }
        }
        
        
        





/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-slider-controls {
        bottom: 20px;
        right: 20px;
    }

    .project-overlay {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}



/* ============================================
   IMAGENES RESPONSIVE
============================================ */

.before-after img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .before-after {
        grid-template-columns: 1fr;
    }
}

.ba-item h3 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-blue);
}



/* IMAGEN SOLO PARA P�GINA DE BA�OS */

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

.bathroom-image img{
width:100%;
max-width:700px;
border-radius:12px;
box-shadow:0 12px 30px rgba(0,0,0,0.12);
}


/* IMAGEN PUERTA ACORAZADA */

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

.door-image img{
width:100%;
max-width:500px;
border-radius:12px;
box-shadow:0 12px 30px rgba(0,0,0,0.12);
}


/* IMAGEN REFORMA INTEGRAL */

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

.integral-image img{
width:100%;
max-width:500px;
border-radius:12px;
box-shadow:0 12px 30px rgba(0,0,0,0.12);
}

/* ============================================
   OPTIMIZACIONES DE RENDIMIENTO MÓVIL
============================================ */

/* Evitar layout shift en imágenes del hero */
.hero-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Reservar espacio para evitar CLS */
    aspect-ratio: 16 / 9;
}

/* Reducir animaciones en móviles lentos */
@media (max-width: 768px) {
    .hero-slide-bg {
        /* En móvil el hero es más cuadrado */
        aspect-ratio: 4 / 3;
    }

    /* Deshabilitar animación pulse en móvil para ahorrar batería */
    .whatsapp-float {
        animation: none;
    }

    /* content-visibility: aplazar render de secciones fuera de pantalla */
    .projects,
    .testimonials,
    .contact {
        content-visibility: auto;
        contain-intrinsic-size: 0 600px;
    }

    /* Reducir sombras costosas en móvil */
    .project-card-inner {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .contact-form {
        box-shadow: 0 4px 20px rgba(30, 58, 111, 0.10);
    }
}

/* Preferencia del usuario: reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .service-card,
    .testimonial-card,
    .project-card-inner,
    .whatsapp-float {
        transition: none !important;
        animation: none !important;
    }
}