/* ===========================
   Variables y Reset
   =========================== */
:root {
    --primary-color: #1a5490;
    --secondary-color: #2c7ac2;
    --accent-color: #ffd700;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --gray-color: #f5f5f5;
    --text-color: #333333;
    --border-color: #dddddd;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Header y Navegación
   =========================== */
.header {
    background: var(--dark-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light-color);
    margin: 3px 0;
    transition: var(--transition);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list li a {
    color: var(--light-color);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-list li a:hover::after {
    width: 100%;
}

.nav-list li a:hover {
    color: var(--accent-color);
}

/* ===========================
   Hero Section con Slider
   =========================== */
.hero {
    margin-top: 90px;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--light-color);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-color);
    z-index: 5;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-description {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* ===========================
   Sección Quiénes Somos
   =========================== */
.about-us {
    background: var(--light-color);
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 15px;
    background: var(--gray-color);
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.about-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   Secciones Generales
   =========================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* ===========================
   Botones
   =========================== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    margin-top: 20px;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

/* ===========================
   Sección Servicios
   =========================== */
.services {
    background: var(--gray-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--light-color);
    padding: 35px 25px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color);
}

.service-list {
    list-style: none;
    text-align: left;
    padding-left: 0;
}

.service-list li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-color);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.services-cta {
    background: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.services-cta p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ===========================
   Sección Proyectos
   =========================== */
.projects {
    background: var(--light-color);
}

.project-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.project-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ===========================
   Sección Clientes
   =========================== */
.clients {
    background: var(--gray-color);
}

.clients-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.clients-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ===========================
   Sección Feature (Viva Sin Rejas)
   =========================== */
.feature-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
}

.feature-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.feature-text strong {
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===========================
   Sección Testimonios
   =========================== */
.testimonials {
    background: var(--gray-color);
    text-align: center;
}

.testimonials h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.representative {
    margin-top: 40px;
}

.representative p {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-nav ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

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

.website {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--dark-color);
        flex-direction: column;
        width: 250px;
        padding: 20px;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: -5px 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-list.active {
        transform: translateX(0);
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .slider-btn {
        padding: 10px 15px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.8rem;
    }
}

/* ===========================
   Página Contacto (Netlify)
   =========================== */
.contact-hero{
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    background: url("images/contacto-bg.jpg") center/cover no-repeat;
    margin-top: 90px;
}
.contact-hero-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.58);
}
.contact-hero-content{
    position: relative;
    color: #fff;
    text-align: center;
    padding: 70px 0;
}
.contact-hero-content h1{
    font-family: var(--font-primary);
    font-size: 2.6rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.contact-hero-content p{
    font-size: 1.05rem;
    opacity: 0.95;
    max-width: 820px;
    margin: 0 auto;
}
.contact-hero-actions{
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-page{
    padding: 60px 0;
    background: var(--gray-color);
}
.contact-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}
.contact-card{
    background: var(--light-color);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.04);
}
.contact-card h3{
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.contact-card p{
    margin-bottom: 10px;
    line-height: 1.6;
}
.contact-card a{ word-break: break-word; }
.contact-badges{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}
.badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
}
.map-wrap{
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    background: var(--light-color);
}
.map-wrap iframe{
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}
.contact-notes{
    margin-top: 22px;
    text-align: center;
    color: var(--text-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.contact-notes strong{ color: var(--primary-color); }
@media (max-width: 968px){
    .contact-grid{ grid-template-columns: repeat(2, 1fr); }
    .contact-hero-content h1{ font-size: 2.2rem; }
}
@media (max-width: 520px){
    .contact-grid{ grid-template-columns: 1fr; }
    .contact-hero{ min-height: 320px; }
    .contact-hero-content{ padding: 60px 0; }
}

/* ===========================
   WhatsApp Widget (burbuja)
   =========================== */
.wa-widget{
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}
.wa-button{
    pointer-events: auto;
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #25D366;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.20);
    text-decoration: none;
    transition: transform 150ms ease;
}
.wa-button:hover{ transform: translateY(-1px); }
.wa-icon{ display: grid; place-items: center; }
.wa-badge{
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ff3b30;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
}
.wa-bubble{
    pointer-events: auto;
    max-width: 240px;
    background: #fff;
    color: #111;
    font-family: "Times New Roman", Times, serif;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 250ms ease, transform 250ms ease;
}
.wa-bubble::after{
    content: "";
    position: absolute;
    right: 14px;
    bottom: -8px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #fff;
}
.wa-bubble.is-visible{
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 520px){
    .wa-widget{ right: 14px; bottom: 14px; }
    .wa-bubble{ max-width: 210px; font-size: 13px; }
    .wa-button{ width: 58px; height: 58px; }
}

/* Badge logo sin caja blanca */
.about-badge{
    position: absolute;
    bottom: 18px;
    right: 18px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
.about-badge img{
    width: 86px;
    height: auto;
    display: block;
}

.nav-list a:hover{ color: var(--accent-yellow); }
