/* --- VARIABLES Y CONFIGURACIÓN --- */
:root {
    --primary-color: #B87333; /* Cobre Industrial cálido */
    --primary-dark: #8C5221;
    --primary-light: #D99B64;
    --secondary-color: #0F172A; /* Slate/Azul Petróleo Profundo corporativo */
    --secondary-light: #1E293B;
    --accent-color: #38BDF8;
    
    --bg-light: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-color: #334155;
    --text-muted: #64748B;
    --white: #FFFFFF;
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 15px 35px rgba(15, 23, 42, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 15px 0;
    overflow: hidden; /* Evita que animaciones de elementos internos generen scroll */
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* --- ENCABEZADOS DE SECCIÓN --- */
.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-header .subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.section-header .line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 18px auto 0;
    border-radius: 2px;
}

/* --- BOTONES --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 115, 51, 0.5);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

/* --- HEADER Y NAVEGACIÓN --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    transition: var(--transition);
}

.header.scrolled .header-container {
    height: 70px;
}

.logo img {
    max-height: 80px;
    transition: var(--transition);
}

.header.scrolled .logo img {
    max-height: 44px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
}

.lang-divider {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top:80px;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/fondo.jpg') center/cover no-repeat;
    animation: kenburns 20s infinite alternate ease-in-out;
}

@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 820px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(184, 115, 51, 0.2);
    border: 1px solid rgba(184, 115, 51, 0.4);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-family: var(--font-body);
    font-size: 3.2rem;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.88);
    max-width: 720px;
}

.hero-btns {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* --- STATS BAR --- */
.stats-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 45px 0;
    position: relative;
    z-index: 10;
    border-bottom: 3px solid var(--primary-color);
    overflow: hidden;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}

.stat-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(184, 115, 51, 0.15);
    border: 1px solid rgba(184, 115, 51, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-light);
}

.stat-info h3 {
    font-size: 2.2rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.text-highlight {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 22px 25px;
    border-radius: 0 12px 12px 0;
    margin-bottom: 25px;
    position: relative;
}

.text-highlight i {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 10px;
    display: block;
}

.text-highlight p {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.about-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.about-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.feature-badge i {
    color: var(--primary-color);
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 0 0 35px 0;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(184, 115, 51, 0.3);
}

.service-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 22px;
}

.service-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrap img {
    transform: scale(1.06);
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    margin: 0 28px 18px 28px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.service-list {
    margin-top: auto;
    padding: 0 28px;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    position: relative;
    padding-left: 18px;
    line-height: 1.5;
}

.service-list li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- VALUE BANNER --- */
.value-banner {
    position: relative;
    background: var(--secondary-color);
    color: var(--white);
    padding: 80px 0;
    overflow: hidden;
}

.value-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(184, 115, 51, 0.15) 0%, transparent 70%);
}

.value-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.value-banner h2 {
    font-family: var(--font-body);
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.value-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

.info-card-box {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.info-card-box,
.contact-form-wrap {
    padding: 30px 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(184, 115, 51, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 3px;
}

.info-item p, 
.info-item a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.section#contacto {
    overflow: visible;
}

.contact-info,
.contact-form-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.info-item a:hover {
    color: var(--primary-color);
}

.contact-form-wrap {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 8px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: transparent;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.1);
}

.form-group label {
    position: absolute;
    left: 14px;
    top: 14px;
    color: var(--text-muted);
    transition: var(--transition);
    pointer-events: none;
    background-color: var(--white);
    padding: 0 6px;
    font-size: 0.95rem;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.78rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 35px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-logo img {
    max-height: 70px;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* --- ANIMACIONES CSS EN SCROLL --- */
.fade-in, .fade-in-up, .fade-in-down, .slide-in-left, .slide-in-right, .zoom-in {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-up { transform: translateY(35px); }
.fade-in-down { transform: translateY(-35px); }
.slide-in-left { transform: translateX(-40px); }
.slide-in-right { transform: translateX(40px); }
.zoom-in { transform: scale(0.92); }

.appear {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* --- MEDIA QUERIES / RESPONSIVE --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-container { grid-template-columns: 1fr; gap: 20px; }
    .stat-item { justify-content: flex-start; }
}

@media (max-width: 768px) {

    .hero-bg {
        background: url('../images/fondo.jpg') left/cover no-repeat scroll;
    }

    .slide-in-left, 
    .slide-in-right {
        transform: translateY(30px);
    }

    .hamburger-menu { display: block; }
    .nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 40px 25px;
        transition: var(--transition);
        visibility: hidden;
    }
    .nav.active { 
        right: 0; 
        visibility: visible;
    }
    .nav-list { flex-direction: column; gap: 22px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .btn { width: 100%; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .info-card-box,
    .contact-form-wrap {
        padding: 24px 18px;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .value-banner {
        padding: 20px 0;
    }  



}

.developer-credit {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -5px;
}

.developer-credit a {
    color: var(--primary-light);
    font-weight: 600;
    transition: var(--transition);
}

.developer-credit a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Ocultar el salto de línea en escritorio por defecto */
.mobile-break {
    display: none;
}

/* Mostrar el salto de línea en pantallas móviles (768px o menos) */
@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}