/* ===== V1 DARK PREMIUM — Passtech ===== */

:root {
    --bg-primary: #0D0D0D;
    --bg-secondary: #111118;
    --bg-card: #1A1A2E;
    --bg-card-hover: #222240;
    --gold: #CBA400;
    --gold-light: #E8C800;
    --gold-dark: #9A7D00;
    --text-primary: #F0F0F0;
    --text-secondary: #A0A0B0;
    --text-muted: #6B6B80;
    --border: rgba(203, 164, 0, 0.15);
    --border-hover: rgba(203, 164, 0, 0.4);
    --glow: 0 0 30px rgba(203, 164, 0, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4 { font-family: 'Inter', sans-serif; font-weight: 700; line-height: 1.2; }

.text-gold { color: var(--gold); }
.text-center { text-align: center; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
}
.btn-accent {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #0D0D0D;
    box-shadow: 0 4px 20px rgba(203, 164, 0, 0.3);
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(203, 164, 0, 0.5);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo img { height: 40px; width: auto; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-menu a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}
.nav-menu a:not(.btn):hover { color: var(--gold); }
.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}
.nav-menu a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('images/mucha-experiencia-en-tuneles.jpg') center/cover no-repeat;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 13, 13, 0.92) 0%,
        rgba(26, 26, 46, 0.85) 50%,
        rgba(13, 13, 13, 0.95) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    padding: 120px 0 80px;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-style: italic;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
}
.section-dark {
    background: var(--bg-secondary);
}
.section-header {
    max-width: 700px;
    margin-bottom: 60px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 20px;
}
.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 50px;
}
.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform var(--transition);
}
.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--glow);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    color: var(--gold);
}
.service-icon svg { width: 100%; height: 100%; }
.service-title {
    font-size: 1.05rem;
    margin-bottom: 12px;
    font-weight: 600;
}
.service-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== PEAJES ===== */
.peaje-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.peaje-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}
.peaje-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glow);
    border-color: var(--border-hover);
}
.peaje-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}
.peaje-card:hover img { transform: scale(1.05); }
.peaje-content {
    padding: 24px;
}
.peaje-content h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--gold);
}
.peaje-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.about-img-1 {
    grid-row: 1 / 3;
    border-radius: var(--radius);
    height: 100%;
    object-fit: cover;
}
.about-img-2,
.about-img-3 {
    border-radius: var(--radius);
    object-fit: cover;
    height: 200px;
}
.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}
.about-quote {
    font-size: 1.3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 4px solid var(--gold);
    padding: 20px 24px;
    margin: 30px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.5;
}

/* ===== TEAM ===== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.team-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}
.tunnel-list {
    list-style: none;
    margin: 24px 0;
}
.tunnel-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-primary);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.tunnel-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.7rem;
    top: 13px;
}
.team-profile {
    text-align: center;
}
.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    border: 4px solid var(--gold);
    box-shadow: 0 0 40px rgba(203, 164, 0, 0.2);
}
.profile-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, #16213E 100%);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(203, 164, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-banner h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.4;
}
.cta-banner p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    text-align: center;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow);
    border-color: var(--border-hover);
}
.project-img-wrap {
    overflow: hidden;
    height: 300px;
}
.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-img-wrap img { transform: scale(1.1); }
.project-card h4 {
    padding: 20px;
    font-size: 1.1rem;
    color: var(--gold);
}

/* ===== CLIENTS ===== */
.clients-carousel {
    overflow: hidden;
    margin: 40px 0;
    padding: 20px 0;
}
.clients-track {
    display: flex;
    gap: 60px;
    animation: scroll-clients 20s linear infinite;
}
.client-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: opacity var(--transition);
}
.client-logo:hover { opacity: 1; }
.client-logo img { height: 60px; width: auto; }

@keyframes scroll-clients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.clients-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 40px;
    line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact-section {
    background: url('images/Proyectos-electricos-passtech.jpg') center/cover no-repeat;
    position: relative;
}
.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 13, 0.93);
}
.contact-section .container { position: relative; z-index: 1; }
.contact-pre {
    text-align: center;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
    align-items: center;
}
.contact-info h3 {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 600;
}
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
}
.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer {
    padding: 50px 0;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-logo {
    height: 50px;
    width: auto;
    margin: 0 auto 16px;
    opacity: 0.7;
}
.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .peaje-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .team-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 40px 40px;
        gap: 24px;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }
    .nav-menu.open { right: 0; }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .hero-content { padding: 100px 0 60px; }
    .section { padding: 70px 0; }
    .hero-title { font-size: 2rem; }
}
