.proyectos-header {
    text-align: center;
    padding: 100px 20px 60px 20px;
}

.proyectos-header {
    text-align: center;
    padding: 100px 20px 60px 20px;
    position: relative;
}


/* TÍTULO */
.proyectos-header h1 {
    font-size: 3.2rem;      /* Tamaño del título */
    font-weight: 700;       /* Grosor */
    color: #0f172a;         /* Azul oscuro corporativo */
    margin-bottom: 20px;    /* Espacio debajo del título */
}

/* SUBTÍTULO */
.proyectos-header p {
    font-size: 1.3rem;      
    font-weight: 400;       
    color: #475569;        
    max-width: 800px;       
    margin: 0 auto;         
    line-height: 1.6;       
}

.proyectos-header::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #d88900; /* dorado */
    margin: 30px auto 0;
    border-radius: 3px;
}



/* ===== PROYECTOS CONTAINER ===== */
.proyectos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

/* ===== PROYECTO CARD ===== */
.proyecto-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* ===== CAROUSEL CONTAINER ===== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 350px;
    background: #f5f5f5;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video en carousel */
.carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
}

.carousel-video-fullscreen-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-video-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ===== CAROUSEL BUTTONS ===== */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 0;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-btn:hover {
    color: var(--dorado, #f4b400);
    transform: translateY(-50%) scale(1.15);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* ===== CAROUSEL DOTS ===== */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: var(--dorado, #f4b400);
    border-color: var(--dorado, #f4b400);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: var(--dorado, #f4b400);
}

/* ===== PROYECTO INFO ===== */
.proyecto-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.proyecto-info h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.proyecto-descripcion {
    font-size: 1em;
    color: #475569;
    margin-bottom: 25px;
    line-height: 1.6;
}

.proyecto-detalles {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.detalle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95em;
    color: #0f172a;
}

.detalle .icono {
    font-size: 1.3em;
}

.detalle span:last-child {
    font-weight: 500;
    color: #475569;
}

/* ===== SECCION VER MAS ===== */
.ver-mas-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.05) 0%, rgba(201, 162, 39, 0.02) 100%);
    border-radius: 20px;
    margin: 0 20px 100px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ver-mas-section h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.ver-mas-section p {
    font-size: 1em;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-ver-mas {
    display: inline-block;
    background: var(--dorado, #f4b400);
    color: white;
    padding: 14px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--dorado, #f4b400);
}

.btn-ver-mas:hover {
    background: var(--dorado-dark, #e0a000);
    border-color: var(--dorado-dark, #e0a000);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201, 162, 39, 0.3);
}

.btn-ver-mas:active {
    transform: translateY(-1px);
}

/* ===== MODAL PARA VER TODOS LOS PROYECTOS ===== */
.modal-todos-proyectos {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.modal-todos-proyectos.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #7a8494;
    cursor: pointer;
    transition: color 0.3s ease;
    border: none;
    background: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #0f172a;
}

.modal-content h2 {
    font-size: 2em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 40px;
    text-align: center;
}

.todos-proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.proyecto-completo {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.proyecto-completo:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.proyecto-completo-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
}

.proyecto-completo-info {
    padding: 25px;
}

.proyecto-completo-info h4 {
    font-size: 1.2em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.proyecto-completo-info p {
    font-size: 0.9em;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
}

.proyecto-completo-detalles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85em;
}

.proyecto-completo-detalles span {
    color: #7a8494;
    display: flex;
    align-items: center;
    gap: 8px;
}

.proyecto-completo-detalles span::before {
    content: '▪';
    color: #C9A227;
}

/* ===== OTROS PROYECTOS ===== */
.otros-proyectos {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.05) 0%, rgba(201, 162, 39, 0.02) 100%);
    padding: 80px 20px;
    margin-bottom: 60px;
}

.otros-proyectos h2 {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 60px;
}

.otros-proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.otro-proyecto {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.otro-proyecto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #C9A227;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.otro-proyecto:hover::before {
    transform: scaleX(1);
}

.otro-proyecto:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.proyecto-numero {
    display: inline-block;
    font-size: 2.5em;
    font-weight: 700;
    color: #C9A227;
    opacity: 0.3;
    margin-bottom: 15px;
}

.otro-proyecto h4 {
    font-size: 1.3em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.otro-proyecto p {
    color: #475569;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ubicacion-año {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9em;
}

.ubicacion-año span {
    color: #7a8494;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ubicacion-año span::before {
    content: '▪';
    color: #C9A227;
}

/* ===== CONTACTO PROYECTOS ===== */
.contacto-proyectos {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    margin: 0 20px 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contacto-proyectos h2 {
    font-size: 2em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
}

.contacto-proyectos p {
    font-size: 1.05em;
    color: #475569;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-contacto {
    display: inline-block;
    background: var(--dorado, #f4b400);
    color: white;
    padding: 16px 50px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--dorado, #f4b400);
}

.btn-contacto:hover {
    background: var(--dorado-dark, #e0a000);
    border-color: var(--dorado-dark, #e0a000);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201, 162, 39, 0.3);
}

.btn-contacto:active {
    transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-proyectos {
        padding-top: 160px;
    }

    .proyectos-header h1 {
        font-size: 2em;
    }

    .proyectos-header p {
        font-size: 1em;
    }

    .proyectos-container {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 60px;
    }

    .carousel-container {
        height: 280px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .proyecto-info h3 {
        font-size: 1.3em;
    }

    .proyecto-descripcion {
        font-size: 0.95em;
    }

    .otros-proyectos {
        padding: 60px 20px;
    }

    .otros-proyectos h2 {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .otros-proyectos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contacto-proyectos {
        padding: 40px 20px;
    }

    .contacto-proyectos h2 {
        font-size: 1.5em;
    }

    .contacto-proyectos p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .proyectos-header h1 {
        font-size: 1.8em;
    }

    .carousel-container {
        height: 220px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
        left: 10px !important;
        right: auto !important;
    }

    .carousel-btn.next {
        left: auto !important;
        right: 10px !important;
    }

    .proyecto-info {
        padding: 20px;
    }

    .proyecto-info h3 {
        font-size: 1.1em;
    }

    .carousel-dots {
        bottom: 10px;
        gap: 6px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }
}
/* ===== MEDIA QUERIES ADICIONALES PROYECTOS ===== */

/* Tablets (1024px) */
@media (max-width: 1024px) {
    .main-proyectos {
        padding-top: 80px;
    }

    .proyectos-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .carousel-container {
        height: 300px;
    }

    .proyecto-card {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Tablets medianos (768px) */
@media (max-width: 768px) {
    .main-proyectos {
        padding-top: 60px;
        padding-bottom: 40px;
    }

    .proyectos-header {
        margin-bottom: 50px;
        padding: 20px 15px;
    }

    .proyectos-header h1 {
        font-size: 1.8em;
    }

    .proyectos-header p {
        font-size: 1em;
    }

    .proyectos-container {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
        padding: 0 15px;
    }

    .carousel-container {
        height: 280px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .proyecto-info {
        padding: 20px;
    }

    .proyecto-info h3 {
        font-size: 1.3em;
    }

    .proyecto-info p {
        font-size: 0.95em;
    }

    .ubicacion-label {
        font-size: 0.9em;
    }

    .año-label {
        font-size: 0.9em;
    }
}

/* Móviles pequeños (480px) */
@media (max-width: 480px) {
    .main-proyectos {
        padding-top: 50px;
    }

    .proyectos-header {
        margin-bottom: 30px;
        padding: 15px 10px;
    }

    .proyectos-header h1 {
        font-size: 1.5em;
    }

    .proyectos-header p {
        font-size: 0.95em;
    }

    .proyectos-container {
        padding: 0 10px;
        gap: 20px;
    }

    .carousel-container {
        height: 220px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .proyecto-info {
        padding: 15px;
    }

    .proyecto-info h3 {
        font-size: 1.1em;
        margin-bottom: 10px;
    }

    .proyecto-info p {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .ubicacion-label,
    .año-label {
        font-size: 0.85em;
    }
}

/* Ensure hamburger menu is visible on small screens */
@media (max-width: 768px) {
    .menu > .menu-label {
        display: flex !important;
        flex-direction: column !important;
        order: 3 !important;
        z-index: 101 !important;
        cursor: pointer !important;
    }
}