/* ========== VARIABLES GLOBALES PROYECTOS ========== */
:root {
    --primary-gold: #B8860B;
    --accent-yellow: #E8C547;
    --white: #FFFFFF;
    --black: #0a0a0a;
    --gray: #6B7280;
    --bg-light: #F9FAFB;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== PROYECTOS HERO ========== */
.proyectos-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

.proyectos-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/proyecto-destacado1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    filter: brightness(0.7);
}

.proyectos-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.55) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    backdrop-filter: blur(2px);
    z-index: 2;
}

.proyectos-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.proyectos-hero-title {
    margin-bottom: 1.5rem;
}

.proyectos-title-main {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.proyectos-title-accent {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.proyectos-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== PROYECTOS SECTION ========== */
.proyectos-section {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}

.proyectos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========== HEADER SECCIÓN ========== */
.proyectos-section-header {
    text-align: center;
    margin-bottom: 70px;
}

.proyectos-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.proyectos-line {
    width: 80px;
    height: 3px;
    background: var(--primary-gold);
    margin: 0 auto 20px;
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.3);
}

.proyectos-section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ========== GRID DE PROYECTOS ========== */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* ========== PROYECTO CARD ========== */
.proyecto-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid rgba(184, 134, 11, 0.1);
    cursor: pointer;
    animation: fadeInScale 0.8s ease-out backwards;
}

.proyecto-card:nth-child(1) { animation-delay: 0.1s; }
.proyecto-card:nth-child(2) { animation-delay: 0.2s; }
.proyecto-card:nth-child(3) { animation-delay: 0.3s; }
.proyecto-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(184, 134, 11, 0.2);
    border-color: var(--primary-gold);
}

/* ========== PROYECTO IMAGE ========== */
.proyecto-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.proyecto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.9);
}

.proyecto-card:hover .proyecto-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* ========== PROYECTO INFO ========== */
.proyecto-info {
    padding: 30px;
}

.proyecto-category {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--black);
    background: var(--accent-yellow);
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.proyecto-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 10px;
}

.proyecto-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 20px;
}

.proyecto-location svg {
    color: var(--primary-gold);
}

/* ========== PROYECTO BUTTON ========== */
.proyecto-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proyecto-btn:hover {
    background: transparent;
    color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.3);
}

/* ========== TESTIMONIOS SECTION ========== */
.testimonios-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--bg-light) 100%);
    position: relative;
}

.testimonios-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========== TESTIMONIOS HEADER ========== */
.testimonios-header {
    text-align: center;
    margin-bottom: 70px;
}

.testimonios-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.testimonios-line {
    width: 80px;
    height: 3px;
    background: var(--primary-gold);
    margin: 0 auto 20px;
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.3);
}

.testimonios-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    font-weight: 400;
}

/* ========== TESTIMONIOS GRID ========== */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ========== TESTIMONIO CARD ========== */
.testimonio-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(184, 134, 11, 0.1);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out backwards;
}

.testimonio-card:nth-child(1) { animation-delay: 0.1s; }
.testimonio-card:nth-child(2) { animation-delay: 0.2s; }
.testimonio-card:nth-child(3) { animation-delay: 0.3s; }

.testimonio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(184, 134, 11, 0.15);
    border-color: var(--primary-gold);
}

/* ========== TESTIMONIO HEADER ========== */
.testimonio-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonio-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--accent-yellow) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonio-avatar svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
}

.testimonio-info {
    flex: 1;
}

.testimonio-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

.testimonio-project {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ========== TESTIMONIO STARS ========== */
.testimonio-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* ========== TESTIMONIO TEXT ========== */
.testimonio-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 15px;
}

.testimonio-date {
    font-size: 0.85rem;
    color: var(--primary-gold);
    font-weight: 600;
}

/* ========== RESPONSIVE - TABLET ========== */
@media screen and (max-width: 1024px) {
    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ========== RESPONSIVE - MÓVIL ========== */
@media screen and (max-width: 768px) {
    .proyectos-hero {
        min-height: 350px;
    }

    .proyectos-hero-content {
        padding: 0 20px;
    }

    .proyectos-title-accent {
        font-size: 2.5rem;
    }

    .proyectos-hero-subtitle {
        font-size: 1rem;
    }

    .proyectos-section,
    .testimonios-section {
        padding: 60px 0;
    }

    .proyectos-container,
    .testimonios-container {
        padding: 0 20px;
    }

    .proyectos-section-title,
    .testimonios-title {
        font-size: 2rem;
    }

    .proyecto-image {
        height: 220px;
    }

    .proyecto-info {
        padding: 25px;
    }

    .testimonio-card {
        padding: 25px;
    }
}

@media screen and (max-width: 480px) {
    .proyectos-title-accent {
        font-size: 2rem;
    }

    .proyectos-section-title,
    .testimonios-title {
        font-size: 1.8rem;
    }

    .proyecto-name {
        font-size: 1.3rem;
    }
}