/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary: #f4c430; 
    --primary-hover: #d1a51e;
    --dark-bg: #111111; 
    --card-bg: #ffffff;
    --text-dark: #222222;
    --text-light: #ffffff;
    --grey-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--dark-bg); 
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* --- HEADER --- */
header {
    background-color: transparent; 
    padding: 1rem 0; 
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease; 
}

header.header-scrolled {
    background-color: rgba(17, 17, 17, 0.95); 
    backdrop-filter: blur(10px); 
    padding: 0.6rem 0; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 2rem; 
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    line-height: 1;
    gap: 3px; 
}

.nav-logo-img {
    max-height: 55px;
    width: auto;
    display: block;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: #e0e0e0; font-size: 0.95rem; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: transparent;
}
.btn-outline:hover { background-color: var(--primary); color: var(--dark-bg); }

/* --- CLASES GLOBALES --- */
.section-responsive {
    padding: 80px 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* --- HERO SECTION --- */
.hero {
    background-color: var(--dark-bg);
    background-image: url('../images/fondo-tech.webp');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    min-height: 90vh; 
    display: flex;
    align-items: center; 
}

.hero-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.hero-content { max-width: 700px; margin-top: 60px; }

.hero h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin-bottom: 20px; 
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7); 
}
.hero .highlight { color: var(--text-light); }
.hero p { 
    font-size: 1.25rem; 
    color: #e0e0e0; 
    margin-bottom: 40px; 
    max-width: 550px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark-bg);
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.4); 
}
.btn-primary:hover { 
    background-color: var(--primary-hover); 
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.6);
}

/* --- SERVICES SECTION --- */
.services { background-color: var(--grey-bg); z-index: 1; }
.services::before {
    content: ''; position: absolute; top: 20%; left: 0; width: 100%; height: 60%;
    background: var(--primary); transform: skewY(-2deg); z-index: -1; opacity: 0.8;
}
.services-header { text-align: center; margin-bottom: 50px; }
.services h2 { font-size: 2.2rem; color: var(--dark-bg); }

.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 20px;
}

.service-card {
    background: white; padding: 40px 30px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); text-align: center;
    transition: transform 0.3s, box-shadow 0.3s; 
    border: 1px solid transparent;
}
.service-card:hover { 
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 2.5rem; color: var(--primary); background: #fdfdfd; width: 80px; height: 80px;
    line-height: 80px; border-radius: 50%; margin: 0 auto 20px; border: 2px solid var(--primary);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--dark-bg); }
.service-list { text-align: left; font-size: 0.9rem; color: #666; padding-left: 10px; }
.service-list li { margin-bottom: 8px; list-style-type: disc; margin-left: 15px; }

.cta-banner { text-align: center; margin-top: 50px; }
.cta-banner p { font-weight: 700; margin-bottom: 10px; }
.btn-text { color: var(--dark-bg); font-weight: 700; border-bottom: 2px solid var(--primary); }

/* --- ABOUT SECTION --- */
.about {
    background-color: white;
    padding: 80px 0 60px 0; 
    margin-bottom: 0;
    position: relative;
    z-index: 2; 
}

.about-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%;
    display: flex; align-items: center; gap: 60px;
}
.about-text { flex: 1; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 40px; }
.feature-block { display: flex; gap: 20px; margin-bottom: 30px; }
.f-icon { font-size: 2rem; color: var(--primary); }
.feature-block h4 { font-size: 1.2rem; margin-bottom: 5px; }
.feature-block p { color: #666; font-size: 0.95rem; }
.about-image { flex: 1; }
.about-image img { 
    width: 100%; 
    border-radius: 10px; 
    box-shadow: 20px 20px 0px var(--primary); 
    vertical-align: bottom; 
    transition: transform 0.3s;
}
.about-image img:hover { transform: scale(1.02); }

/* --- CONTACT SECTION --- */
.contact-section {
    position: relative;
    overflow: hidden;
    padding: 120px 0 40px 0;
    margin-top: -60px; 
    background-color: #1a1a1a;
    z-index: 5; 
}

.map-bg {
    position: absolute;
    top: -100px; 
    left: 0; 
    width: 150%; 
    height: 150%; 
    z-index: 0;
    filter: grayscale(100%) invert(90%) contrast(120%);
    opacity: 0.8;
    display: block;
    border: none;
    pointer-events: none; 
}

/* ANIMACIÓN LATIDO PIN */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 196, 48, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(244, 196, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 196, 48, 0); }
}

.pin-highlighter {
    position: absolute;
    z-index: 1; 
    top: 55%;   
    left: 75%;  
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 4px solid var(--primary); 
    border-radius: 50%;
    animation: pulse 2s infinite;
    pointer-events: none; 
}

.map-custom-card {
    position: absolute;
    top: 60px; 
    right: 30px;
    background-color: #1a1a1a;
    border: 2px solid var(--primary);
    padding: 20px;
    border-radius: 10px;
    z-index: 10;
    width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: white;
}
.map-card-title { font-weight: 700; color: var(--primary); margin-bottom: 5px; font-size: 1.1rem; }
.map-card-address { font-size: 0.85rem; color: #ccc; margin-bottom: 15px; line-height: 1.4; }
.map-card-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-map {
    text-align: center; font-size: 0.8rem; text-transform: uppercase; font-weight: 700;
    color: var(--primary); text-decoration: none; border: 1px solid var(--primary);
    padding: 8px; border-radius: 5px; transition: all 0.3s;
}
.btn-map:hover { background-color: var(--primary); color: #000; }

.contact-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
}

.contact-title {
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.9);
    text-align: center;
    width: 100%;
}

.contact-box {
    background-color: #1a1a1a;
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 900px; 
    margin: 0 auto;
}

.form-col { text-align: left; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; color: #888; margin-bottom: 5px; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; 
    background-color: #111; 
    border: 1px solid #333; 
    padding: 12px; 
    color: white; 
    border-radius: 5px; 
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(244, 196, 48, 0.2); 
    background-color: #0a0a0a;
}
.form-group textarea { height: 120px; resize: none; }

.info-col { text-align: left; color: white; display: flex; flex-direction: column; justify-content: center; }
.info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.info-item i { color: var(--primary); font-size: 1.5rem; margin-top: 5px; }
.info-item h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--primary); }
.info-item p { color: #ccc; font-size: 0.95rem; line-height: 1.6; }

.social-icons { margin-top: 20px; display: flex; gap: 15px; justify-content: center; }
.social-icons a {
    width: 40px; height: 40px; border-radius: 50%; background-color: #333; color: var(--primary);
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.social-icons a:hover { background-color: var(--primary); color: #000; transform: rotate(360deg); }

/* Footer Bottom */
.footer-bottom {
    background-color: #000;
    color: #e0e0e0;
    padding: 30px 0;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    z-index: 10;
    margin-top: 0;
    border-top: 1px solid #222;
}

.footer-bottom-container {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #e0e0e0; transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }

/* --- ANIMACIONES NATIVAS (SIN LIBRERÍAS EXTERNAS) --- */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 1s;
    transition-timing-function: ease-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Tipos de animación */
[data-aos="fade-up"] { transform: translateY(50px); }
[data-aos="fade-down"] { transform: translateY(-50px); }
[data-aos="fade-right"] { transform: translateX(-50px); }
[data-aos="fade-left"] { transform: translateX(50px); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="fade-in"] { transform: none; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .map-custom-card {
        position: relative; top: auto; right: auto; width: 100%; margin-bottom: 20px;
    }
    .pin-highlighter { display: none; }
}

@media (max-width: 768px) {
    .section-responsive { padding: 60px 0; }
    
    .hero { min-height: auto; padding: 140px 0 80px 0; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    
    .nav-links { display: none; } 
    .about-container { flex-direction: column; }
    
    .contact-section { margin-top: 0; padding-top: 60px; }
    .contact-box { grid-template-columns: 1fr; padding: 20px; }
    
    .info-col { alignItems: flex-start; }
    .social-icons { justify-content: flex-start; }
    .footer-bottom-container { flex-direction: column; text-align: center; }
    
    .map-bg { width: 100%; height: 100%; left: 0; top: 0; opacity: 0.3; }
    .pin-highlighter { display: none; }
}