/* =========================================================
   PHD METALS MÉXICO - STYLE.CSS
   Diseño industrial / moderno / profesional
========================================================= */

/* =========================================================
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
========================================================= */
:root {
    --black: #111111;
    --black-soft: #181818;
    --dark: #222222;

    --white: #ffffff;
    --light: #f6f6f6;
    --gray-light: #e9e9e9;
    --gray: #666666;
    --gray-dark: #444444;

    --accent: #f5a623;
    --accent-dark: #d98b0b;

    --container: 1200px;

    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.15);

    --transition: 0.3s ease;
}

/* =========================================================
   2. RESET
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* =========================================================
   3. CONTENEDORES Y ENCABEZADOS DE SECCIÓN
========================================================= */
section {
    padding: 110px 8%;
}

.section-header {
    max-width: var(--container);
    margin: 0 auto 55px;
}

.section-subtitle {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
}

/* =========================================================
   4. HEADER / NAVBAR
========================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 18px 8%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.menu li {
    position: relative;
}

.menu a {
    position: relative;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color var(--transition);
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.menu a:hover {
    color: var(--accent);
}

.menu a:hover::after {
    width: 100%;
}

.menu-button {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}
/* =========================================================
   4. HEADER / NAVBAR
========================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 8%; /* Ajustamos el padding vertical */
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

nav {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* Limitamos la altura de la barra */
}

/* --- AGREGA ESTO PARA FIXEAR EL LOGO --- */
.logo img,
nav img {
    height: 50px;       /* Controla la altura del logo */
    width: auto;        /* Mantiene la proporción correcta */
    object-fit: contain;
    display: block;
}
/* -------------------------------------- */

.menu {
    display: flex;
    list-style: none;
    gap: 32px;
}
/* =========================================================
   5. HERO
========================================================= */
#inicio {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 140px;
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.86) 0%,
            rgba(0, 0, 0, 0.70) 45%,
            rgba(0, 0, 0, 0.45) 100%
        ),
        url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=2000&q=85");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.hero-subtitle {
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

#inicio h1 {
    max-width: 900px;
    font-size: clamp(3rem, 7vw, 5.7rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 30px;
}

.hero-text {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 38px;
}

/* =========================================================
   6. BOTONES
========================================================= */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
    transform: translateY(-3px);
}

/* =========================================================
   7. NOSOTROS / EXPERIENCIA
========================================================= */
.experience-section {
    position: relative;
    min-height: 80vh;
    padding: 100px 7%;
    display: flex;
    align-items: center;
    background-image: url("../img/obra.jpeg"); 
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    color: var(--white);
    overflow: hidden;
}

.experience-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 12, 15, 0.95) 0%,
        rgba(10, 12, 15, 0.75) 45%,
        rgba(10, 12, 15, 0.25) 100%
    );
    z-index: 1;
}

.experience-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 540px;
    margin: 0;
}

.experience-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.experience-content h2 {
    max-width: 100%;
    margin: 0 0 20px;
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

.experience-content h2 span {
    color: var(--accent);
}

.experience-content > p {
    max-width: 480px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.7;
}

.experience-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 30px;
}

.experience-bottom {
    display: flex;
    gap: 40px;
}

.experience-bottom div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.experience-bottom strong {
    color: var(--accent);
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.experience-bottom span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* =========================================================
   8. ESTADÍSTICAS
========================================================= */
.stats {
    max-width: var(--container);
    margin: 80px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid var(--gray-light);
}

.stat {
    padding: 35px 20px;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition:
        border-color var(--transition),
        transform var(--transition);
}

.stat:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.stat h3 {
    color: var(--black);
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat p {
    color: var(--gray);
    font-size: 14px;
    margin: 0;
}

/* =========================================================
   9. SERVICIOS
========================================================= */
#servicios {
    background: var(--light);
}

#servicios .section-header {
    text-align: center;
}

.services-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--white);
    border: 1px solid #e5e5e5;
    overflow: hidden;
    position: relative;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card > img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.service-card:hover > img {
    transform: scale(1.07);
    filter: brightness(0.82);
}

.service-card-content {
    padding: 28px 28px 30px;
}

.service-card-content span {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.service-card-content h3 {
    font-size: 23px;
    line-height: 1.2;
    margin-bottom: 13px;
}

.service-card-content p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-card-content a {
    display: inline-block;
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition:
        color var(--transition),
        transform var(--transition);
}

.service-card-content a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

/* =========================================================
   10. PROYECTOS PREMIUM
========================================================= */
.projects-premium {
    background: #f3f3f0;
    padding: 150px 7%;
    color: #111;
    overflow: hidden;
}

.projects-premium-header {
    max-width: 1400px;
    margin: 0 auto 100px;
    display: grid;
    grid-template-columns: 100px 1.5fr 0.8fr;
    gap: 50px;
    align-items: end;
}

.projects-label {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.projects-label span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}

.projects-label p {
    margin: 0;
    color: #777;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.projects-main-title h2 {
    margin: 0;
    color: #111;
    font-size: clamp(65px, 9vw, 125px);
    line-height: 0.82;
    font-weight: 900;
    letter-spacing: -7px;
}

.projects-main-title h2 span {
    color: var(--accent);
}

.projects-statement {
    max-width: 400px;
    padding-bottom: 5px;
}

.projects-statement p {
    margin: 0 0 30px;
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

.statement-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 20px;
}

.projects-statement strong {
    color: #222;
    font-size: 14px;
    line-height: 1.5;
}

.project-premium-main {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.project-premium-image {
    position: relative;
    height: 650px;
    overflow: hidden;
    background: #222;
}

.project-premium-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-premium-main:hover .project-premium-image img {
    transform: scale(1.04);
}

.project-image-number {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #111;
    font-size: 14px;
    font-weight: 900;
}

.project-premium-info {
    padding-right: 20px;
}

.project-meta {
    margin-bottom: 25px;
    color: #888;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.project-premium-info h3 {
    margin: 0 0 30px;
    color: #111;
    font-size: clamp(45px, 5vw, 75px);
    line-height: 0.9;
    letter-spacing: -4px;
    font-weight: 900;
}

.project-premium-info p {
    margin-bottom: 35px;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

.project-line {
    width: 100%;
    height: 1px;
    background: #ccc;
    margin-bottom: 25px;
}

.project-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.project-specs div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-specs span {
    color: #999;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.project-specs strong {
    color: #222;
    font-size: 14px;
}

.projects-premium-grid {
    max-width: 1400px;
    margin: 130px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.project-premium-small {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
}

.small-image {
    position: relative;
    height: 360px;
    overflow: hidden;
    background: #222;
}

.small-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-premium-small:hover .small-image img {
    transform: scale(1.06);
}

.small-image span {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: white;
    font-size: 11px;
    font-weight: 800;
}

.small-content > span {
    color: #999;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.small-content h3 {
    margin: 15px 0;
    color: #111;
    font-size: 29px;
    line-height: 1;
}

.small-content p {
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

.projects-premium-footer {
    max-width: 1400px;
    margin: 130px auto 0;
    padding-top: 35px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    border-top: 1px solid #ccc;
}

.projects-premium-footer span {
    color: #777;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.projects-premium-footer p {
    margin: 0;
    color: #222;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

/* =========================================================
   11. CLIENTES / PRUEBA SOCIAL
========================================================= */
.clients-section {
    background-color: #0d1013;
    padding: 80px 7%;
    text-align: center;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clients-container {
    max-width: 1100px;
    margin: 0 auto;
}

.clients-label {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.clients-section h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    max-width: 850px;
    margin: 0 auto 15px auto;
    color: #ffffff;
}

.clients-intro {
    font-size: 16px;
    color: #a0aec0;
    margin-bottom: 45px;
}

.clients-single-image {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
}

.clients-single-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: center;
}

.client-logo-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.2);
}

.client-logo-card img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
}

.clients-tagline {
    margin-top: 35px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

 /* =========================================================
   12. FILOSOFÍA / CARRUSEL
========================================================= */
.philosophy-slider-section {
    background-color: #0d1013;
    padding: 80px 5%;
    width: 100%;
    color: #ffffff;
}

.philosophy-header {
    text-align: center;
    margin-bottom: 40px;
}

.philosophy-label {
    display: block;
    color: var(--accent, #e6a100);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.philosophy-header h2 {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    color: #ffffff;
}

/* ESTRUCTURA DEL CARRUSEL */
.philosophy-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    background: #181c22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 35px;
    box-sizing: border-box;
    color: #ffffff;
}

.slide-number {
    display: block;
    color: var(--accent, #e6a100);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.carousel-slide h3 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 15px;
}

.carousel-slide p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.7;
}

.carousel-slide ul {
    list-style: none;
    padding: 0;
}

.carousel-slide li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.carousel-slide li::before {
    content: "•";
    color: var(--accent, #e6a100);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.carousel-slide strong {
    color: #ffffff;
}

/* BOTONES LATERALES */
.carousel-btn {
    background: var(--accent, #e6a100);
    color: #111111;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    user-select: none;
}

.carousel-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
}

/* INDICADORES DE PUNTOS (DOTS) */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-dots .dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dots .dot.active {
    background: var(--accent, #e6a100);
    transform: scale(1.2);
}

/* =========================================================
   15. ANIMACIONES
========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(2) { transition-delay: 0.08s; }
.service-card:nth-child(3) { transition-delay: 0.16s; }
.service-card:nth-child(4) { transition-delay: 0.08s; }
.service-card:nth-child(5) { transition-delay: 0.16s; }
.service-card:nth-child(6) { transition-delay: 0.24s; }

/* =========================================================
   16. MEDIA QUERIES (RESPONSIVE)
========================================================= */
@media (max-width: 1000px) {
    section { padding: 90px 6%; }
    header { padding: 18px 6%; }
    #inicio h1 { font-size: clamp(3rem, 8vw, 5rem); }
    .about-container { grid-template-columns: 1fr; gap: 45px; }
    .about-image img { height: 450px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    #proyectos > div { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .projects-premium { padding: 110px 6%; }
    .projects-premium-header { grid-template-columns: 80px 1fr; gap: 30px; }
    .projects-statement { grid-column: 2; }
    .project-premium-main { grid-template-columns: 1fr; }
    .project-premium-image { height: 550px; }
    .project-premium-info { max-width: 650px; }
    .projects-premium-grid { grid-template-columns: 1fr; }
    #contacto { padding: 90px 6%; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 75px; }
    body { font-size: 15px; }
    header { padding: 16px 5%; background: rgba(17, 17, 17, 0.98); }
    nav { position: relative; }
    .logo { font-size: 23px; }
    .menu-button { display: block; }
    .menu {
        position: absolute;
        top: calc(100% + 16px);
        left: -5vw;
        width: 100vw;
        background: #111111;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 15px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .menu.active { opacity: 1; visibility: visible; transform: translateY(0); }
    .menu li { width: 100%; text-align: center; }
    .menu a { display: block; padding: 14px 20px; font-size: 15px; }
    .menu a::after { display: none; }
    section { padding: 80px 5%; }
    #inicio { min-height: 100svh; padding-top: 120px; background-position: 58% center; }
    .hero-content { max-width: 100%; }
    .hero-subtitle { font-size: 11px; letter-spacing: 2.5px; margin-bottom: 18px; }
    #inicio h1 { font-size: clamp(2.7rem, 12vw, 4rem); letter-spacing: -2px; line-height: 1; }
    .hero-text { font-size: 16px; line-height: 1.6; margin-bottom: 30px; }
    .hero-buttons { width: 100%; flex-direction: column; align-items: stretch; }
    .btn-primary, .btn-secondary { width: 100%; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: clamp(2.2rem, 10vw, 3rem); letter-spacing: -1px; }
    .about-container { grid-template-columns: 1fr; gap: 40px; }
    .about-image img { height: 330px; }
    .about-image::after { left: 12px; bottom: 12px; width: 60px; height: 60px; }
    .about-content h3 { font-size: 27px; }
    .stats { grid-template-columns: repeat(2, 1fr); margin-top: 55px; gap: 0; }
    .stat { padding: 28px 10px; }
    .stat h3 { font-size: 32px; }
    .stat p { font-size: 13px; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card > img { height: 240px; }
    .service-card-content { padding: 25px; }
    .experience-section { min-height: auto; padding: 80px 6%; }
    .experience-overlay { background: rgba(10, 12, 15, 0.85); }
    .experience-content { max-width: 100%; }
    .experience-content h2 { font-size: 38px; letter-spacing: -0.5px; }
    .experience-content > p { font-size: 15px; }
    .experience-bottom { gap: 25px; }
    .experience-bottom strong { font-size: 18px; }
    .projects-premium { padding: 80px 5%; }
    .projects-premium-header { display: block; margin-bottom: 60px; }
    .projects-label { margin-bottom: 40px; }
    .projects-label p { writing-mode: initial; transform: none; }
    .projects-main-title h2 { font-size: 58px; line-height: 0.88; letter-spacing: -3px; margin-bottom: 40px; }
    .projects-statement { max-width: 100%; }
    .project-premium-image { height: 390px; }
    .project-premium-info { padding-right: 0; }
    .project-premium-info h3 { font-size: 48px; letter-spacing: -2px; }
    .projects-premium-grid { margin-top: 90px; gap: 70px; }
    .project-premium-small { grid-template-columns: 1fr; gap: 20px; }
    .small-image { height: 300px; }
    .projects-premium-footer { grid-template-columns: 1fr; margin-top: 90px; gap: 20px; }
    #contacto { padding: 80px 5%; }
    #contacto h2 { font-size: clamp(2.5rem, 11vw, 4rem); }
    footer { padding: 25px 5%; }
}

@media (max-width: 420px) {
    .experience-section { padding: 60px 5%; }
    .experience-content h2 { font-size: 30px; }
    .experience-bottom { gap: 15px; }
    .projects-premium { padding: 70px 5%; }
    .projects-main-title h2 { font-size: 50px; letter-spacing: -2px; }
    .project-premium-image { height: 300px; }
    .project-premium-info h3 { font-size: 43px; }
    .small-image { height: 260px; }
    .projects-premium-footer p { font-size: 16px; }
}
/* =========================================================
   CONTACTO Y FOOTER
========================================================= */
#contacto,
.contact-section {
    background-color: #0d1013;
    color: #ffffff;
    padding: 80px 8%;
    text-align: center;
}

#contacto h2 {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

#contacto p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-bottom: 25px;
}

.btn-email,
#contacto a {
    display: inline-block;
    background-color: #e6a100; /* Color acento dorado/amarillo */
    color: #111111;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-email:hover,
#contacto a:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}

footer {
    background-color: #080a0c;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 25px 5%;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================================
   MODAL / LIGHTBOX DE LA GALERÍA (Oculto por defecto)
========================================================= */
.lightbox-modal,
#lightbox,
.modal-galeria {
    display: none; /* Evita que aparezca suelto al final */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-modal.active,
#lightbox.active,
.modal-galeria.active {
    display: flex;
}
/* =========================================================
   ESTILOS PARA EL MODAL DE LA GALERÍA FLOTANTE (g-modal)
========================================================= */
.g-modal {
    display: none; /* Se mantiene oculto hasta dar clic */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.g-modal.active {
    display: flex !important;
}

.g-modal-content {
    position: relative;
    width: 90%;
    max-width: 850px;
    background: #121519;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.g-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.g-close-btn:hover {
    color: var(--accent, #e6a100);
}

.g-carousel-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.g-slider-window {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.g-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.g-slide {
    min-width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.g-nav-btn {
    background: var(--accent, #e6a100);
    color: #111;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.g-nav-btn:hover {
    transform: scale(1.1);
}

.g-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.g-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.g-dot.active {
    background: var(--accent, #e6a100);
}

/* ESTILOS DE CONTACTO Y FOOTER */
.contact-section {
    background-color: #0d1013;
    color: #ffffff;
    padding: 80px 8%;
    text-align: center;
}

.btn-email {
    display: inline-block;
    background-color: var(--accent, #e6a100);
    color: #111111;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 15px;
}

footer {
    background-color: #080a0c;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 25px 5%;
    font-size: 14px;
}
/* MODAL OCULTO POR DEFECTO */
.g-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.g-modal.active {
    display: flex !important;
}

.g-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #121519;
    border-radius: 8px;
    padding: 30px;
}

.g-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

.g-carousel-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.g-slider-window {
    width: 100%;
    overflow: hidden;
}

.g-track {
    display: flex;
    transition: transform 0.4s ease;
}

.g-slide {
    min-width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.g-nav-btn {
    background: #e6a100;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.g-dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.g-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
}

.g-dot.active {
    background: #e6a100;
}
/* Quita el estilo nativo del navegador para el botón de servicios */
button.service-link {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-top: 15px;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    color: #000000; /* O usa var(--accent) si prefieres el color dorado */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, color 0.2s ease;
}

button.service-link:hover {
    transform: translateX(4px);
    opacity: 0.8;
}
/* CONTROLES INDEPENDIENTES PARA EL CARRUSEL DE FILOSOFÍA */
let currentPhilSlide = 0;

function movePhilosophySlide(direction) {
    const track = document.getElementById("carouselTrack");
    const slides = document.querySelectorAll(".philosophy-carousel .carousel-slide");
    
    if (!track || slides.length === 0) return;

    currentPhilSlide = (currentPhilSlide + direction + slides.length) % slides.length;
    track.style.transform = `translateX(-${currentPhilSlide * 100}%)`;
}
/* =========================================================
   CORRECCIÓN FINAL DE CONTACTO (CENTRADO VERTICAL)
========================================================= */
.contact-section {
    background-color: #0d1013;
    padding: 80px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-card {
    background: #181c22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column; /* Alinea los elementos uno abajo del otro */
    align-items: center;
}

.contact-label {
    display: block;
    color: var(--accent, #e6a100);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-card h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.contact-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--accent, #e6a100);
    color: #111111;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-email:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
}