/* Variables Globales - Estilo Dark Premium */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --accent: #d4af37; /* Dorado sutil */
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Logo */
.header {
    padding: 30px 5%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 700;
    letter-spacing: 5px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
}

/* Hero Section */
.hero {
    padding: 100px 5%;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
}

.hero p {
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Portfolio Grid */
#portfolio {
    padding: 80px 5%;
}

#portfolio h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--accent);
}

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.proyecto-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.proyecto-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.proyecto-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.proyecto-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Botones */
.open-modal, .btn-promo {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.open-modal {
    background: var(--text-main);
    color: #000;
    border: none;
    margin-right: 10px;
}

.btn-promo {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-promo:hover {
    background: var(--accent);
    color: #000;
}

/* Beneficios Section */
.beneficios-container {
    padding: 100px 5%;
    background: linear-gradient(180deg, #050505 0%, #0f0f0f 100%);
}

.beneficios-header {
    text-align: center;
    margin-bottom: 60px;
}

.beneficios-header h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.beneficio-item {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.beneficio-item .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.beneficio-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.beneficio-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Testimonios */
#testimonios {
    padding: 100px 5%;
    text-align: center;
    background: #030303;
}

#testimonios h2 {
    color: var(--accent);
    margin-bottom: 40px;
    font-size: 2rem;
}

/* Contenedor principal que alinea flechas y contenido */
.testimonios-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    gap: 20px;
}

/* La ventana que esconde los testimonios que no se están viendo */
.testimonios-window {
    width: 100%;
    overflow: hidden;
}

/* La pista horizontal que contiene todos los bloques */
.testimonios-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

/* Cada testimonio individual ocupa el 100% del ancho de la ventana */
.testimonio-item {
    flex: 0 0 100%;
    width: 100%;
    padding: 20px 40px;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-dim);
    box-sizing: border-box;
}

.testimonio-item p {
    line-height: 1.6;
}

.testimonio-item cite {
    display: block;
    margin-top: 25px;
    font-style: normal;
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Botones de las Flechas - Estilo Dark Premium */
.slider-arrow {
    background: var(--bg-card);
    border: none;
    /* border: 1px solid var(--glass-border); */
    color: var(--text-main);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10;
}

.slider-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 175, 55, 0.05);
    transform: scale(1.1);
}

/* Ocultar flechas en celulares muy chicos si molestan, aunque con el gap de 20px van bien */
@media (max-width: 600px) {
    .testimonio-item {
        font-size: 1.1rem;
        padding: 10px 10px;
    }
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}


.testimonio-item cite span {
    font-weight: 300;
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-left: 5px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none; /* Se activa con JS */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-window {
    width: 100%;
    max-width: 1100px;
    height: 85vh;
    position: relative;
    background: #111;
    border-radius: 20px;
    border: 1px solid var(--accent);
}

#modal-iframe {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.close-modal {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* Footer */
.main-footer {
    padding: 100px 5% 40px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.btn-alianza {
    display: inline-block;
    padding: 20px 40px;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    margin-top: 30px;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.footer-bottom {
    margin-top: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
}

.brand {
    font-weight: 700;
    color: var(--accent);
}

.footer-social a {
    color: var(--text-dim);
    margin-left: 20px;
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--accent);
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #444;
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        margin-top: 10px;
    }
    
    .footer-social a {
        margin: 0 10px;
    }
}