/* ----- Variables de Color ----- */
:root {
    --azul-primario: #563ce7;
    --azul-oscuro: #3a2bc0;
    --negro: #1a1a1a;
    --gris-claro: #f9f9f9;
    --blanco: #ffffff;
    --gris-texto: #666;
}

/* ----- Reset y Estilos Generales ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gris-claro);
    color: var(--negro);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ----- Barra Superior ----- */
.top-bar {
    background-color: var(--negro);
    color: var(--blanco);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #333;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar .contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar .contact-info a {
    color: var(--blanco);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.top-bar .contact-info a:hover {
    color: var(--azul-primario);
}

.top-bar i {
    margin-right: 8px;
    color: var(--azul-primario);
}

.top-bar .social-links {
    display: flex;
    gap: 15px;
}

.top-bar .social-links a {
    color: var(--blanco);
    transition: color 0.3s;
    font-size: 16px;
}

.top-bar .social-links a:hover {
    color: var(--azul-primario);
}

/* ----- Header Principal ----- */
header {
    background: linear-gradient(135deg, var(--negro) 0%, #333 100%);
    color: var(--blanco);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blanco);
}

.logo span {
    color: var(--azul-primario);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--blanco);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul li a:hover {
    color: var(--azul-primario);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--azul-primario);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--blanco);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    padding: 0.5rem 1.5rem;
}

.dropdown-menu li a {
    color: var(--negro);
    transition: all 0.3s;
}

.dropdown-menu li a:hover {
    color: var(--rojo-primario);
    padding-left: 5px;
}

/* ----- Hero Section ----- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    height: 81vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    color: var(--blanco);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: var(--azul-primario);
    color: var(--blanco);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(91, 60, 231, 0.3);
    cursor: pointer;
}

.btn:hover {
    background: var(--azul-oscuro);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(86, 60, 231, 0.4);
}

/* ----- Sección Sobre Nosotros ----- */
.about {
    padding: 5rem 0;
    background: var(--blanco);
}

.about-subsection {
    padding: 5rem 0;
    background: var(--gris-claro);
}

.why-us {
    padding: 5rem 0;
    background: var(--blanco);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    padding: 2rem;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--azul-primario);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gris-texto);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--gris-claro);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--azul-primario);
    margin-bottom: 1rem;
}

.feature-card h4 {
    margin-bottom: 1rem;
    color: var(--negro);
}

/* ----- Sección Servicios ----- */
.services {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--gris-claro) 0%, var(--blanco) 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1482062364825-616fd23b8fc1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    opacity: 0.03;
    z-index: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--negro);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--azul-primario);
}

.section-title span {
    color: var(--azul-primario);
}

.section-title .subtitle {
    color: var(--gris-texto);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--blanco);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(77, 60, 231, 0.15);
    border-color: rgba(77, 60, 231, 0.3);
}

.service-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--azul-primario);
    z-index: 2;
    transition: all 0.3s;
}

.service-icon .icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(77, 60, 231, 0.1);
    border-radius: 50%;
    transform: scale(0.8);
    transition: all 0.3s;
}

.service-card:hover .icon-bg {
    transform: scale(1);
    background: rgba(86, 60, 231, 0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--negro);
}

.service-card p {
    color: var(--gris-texto);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.service-features li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--gris-texto);
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--azul-primario);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--azul-primario);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-service:hover {
    color: var(--azul-oscuro);
    gap: 1rem;
}

/* ----- Sección Cotiza Gratis ----- */
.quote {
    padding: 5rem 0;
    background: var(--blanco);
}

.quote-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--gris-claro);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.quote-form .form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.quote-form textarea {
    height: 150px;
    resize: vertical;
}

.quote-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e74c3c'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* ----- Sección Corporativas ----- */
.corporate {
    padding: 5rem 0;
    background: var(--gris-claro);
}

.corporate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.corporate-card {
    background: var(--blanco);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.corporate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(77, 60, 231, 0.1);
}

.corporate-card i {
    font-size: 3rem;
    color: var(--azul-primario);
    margin-bottom: 1.5rem;
}

.corporate-card h3 {
    margin-bottom: 1rem;
    color: var(--negro);
}

/* ----- Sección Proyectos ----- */
.projects {
    padding: 5rem 0;
    background: var(--blanco);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--negro);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--gris-texto);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    display: inline-block;
    background: rgba(86, 60, 231, 0.1);
    color: var(--azul-primario);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

/* ----- Sección Contacto ----- */
.contact {
    padding: 5rem 0;
    background: var(--gris-claro);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--negro);
}

.contact-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-info ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--gris-texto);
}

.contact-info ul li i {
    margin-right: 1rem;
    color: var(--azul-primario);
    width: 20px;
    text-align: center;
}

.contact-info ul li a {
    transition: color 0.3s;
}

.contact-info ul li a:hover {
    color: var(--azul-primario);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* ----- Footer ----- */
footer {
    background: var(--negro);
    color: var(--blanco);
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--azul-primario);
}

.footer-logo p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links h3,
.footer-newsletter h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--azul-primario);
}

.footer-newsletter input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
}

.copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.9rem;
}

/* ----- Responsive Design ----- */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .top-bar .contact-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .dropdown-menu li {
        padding: 0.5rem 0 0.5rem 1rem;
    }

    .dropdown-menu li a {
        color: var(--blanco);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .quote-form .form-group {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .projects-grid,
    .contact-grid,
    .features-grid,
    .corporate-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 81vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 2;
}

.slider-controls button {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: var(--azul-primario);
}

/* Timeline */
.timeline {
    position: relative;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--azul-primario);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 2rem;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--azul-primario);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.timeline-content {
    background: var(--gris-claro);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Image Stack */
.image-stack {
    position: relative;
    width: 100%;
}

.stack-bottom {
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.stack-top {
    position: absolute;
    width: 60%;
    right: 0;
    bottom: -20%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 5px solid var(--blanco);
}

/* Quote Section Layout */
.quote-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.quote-image {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.quote-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.quote-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--azul-primario);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(60, 63, 231, 0.3);
}

/* Botón WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Botón outline */
.btn-outline {
    background: transparent;
    border: 2px solid var(--blanco);
    color: var(--blanco);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--blanco);
    color: var(--negro);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quote-content {
        grid-template-columns: 1fr;
    }
    
    .quote-image {
        min-height: 250px;
    }
    
    .image-stack {
        margin-top: 2rem;
    }
    
    .stack-top {
        bottom: -10%;
    }
}







/* ----- Sobre Nosotros Centrado ----- */
.about-centered {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission, .vision {
    background: var(--gris-claro);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    border-left: 4px solid var(--azul-primario);
}

.mission i, .vision i {
    font-size: 2.5rem;
    color: var(--azul-primario);
    margin-bottom: 1rem;
}

.mission h3, .vision h3 {
    color: var(--negro);
    margin-bottom: 1rem;
}

.values h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--negro);
    position: relative;
    display: inline-block;
}

.values h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--azul-primario);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.value-item {
    background: var(--blanco);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(91, 60, 231, 0.1);
}

.value-item i {
    font-size: 2rem;
    color: var(--azul-primario);
    margin-bottom: 1rem;
}

.value-item h4 {
    color: var(--negro);
    margin-bottom: 0.5rem;
}

.experience-container {
    position: relative;
    margin-top: 2rem;
}

.experience-badge {
    display: inline-block;
    background: var(--azul-primario);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(77, 60, 231, 0.3);
}

.experience-badge span {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.experience-badge p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive para Sobre Nosotros */
@media (max-width: 768px) {
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}







/* ----- Estilos para La Empresa ----- */
.about-subsection {
    background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 5rem 0;
}

.about-subsection > .container {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: 8px;
}


.about-subsection::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(77, 60, 231, 0.1) 0%, rgba(106, 60, 231, 0) 70%);
    border-radius: 50%;
}

.timeline-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 2rem auto 0;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--azul-primario);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--azul-primario);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-content {
    background: var(--gris-claro);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border-left: 4px solid var(--azul-primario);
}

.timeline-content h4 {
    color: var(--negro);
    margin-bottom: 0.5rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: var(--blanco);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--azul-primario);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gris-texto);
    margin-top: 0.5rem;
}

.section-title h2 {
    position: relative;
    z-index: 2;
    color: var(--negro);
}

.section-title .subtitle {
    position: relative;
    z-index: 2;
    color: var(--gris-texto);
}



/* ----- Estilos para Por qué Elegirnos - Actualizado ----- */
.why-us {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(71, 60, 231, 0.05) 100%);
    position: relative;
    padding: 5rem 0;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(60, 71, 231, 0.08) 0%, rgba(60, 86, 231, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gris-texto);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto 4rem;
}

.feature-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: float 4s ease-in-out infinite;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(60, 63, 231, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(60, 71, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--azul-primario);
}

.feature-card h4 {
    color: var(--negro);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.why-choose-details {
    background: var(--blanco);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.why-choose-details h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--negro);
    font-size: 1.8rem;
    position: relative;
}

.why-choose-details h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--azul-primario);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--gris-claro);
    border-radius: 8px;
    transition: all 0.3s;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: rgba(63, 60, 231, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.8rem;
    color: var(--azul-primario);
}

.benefit-content h4 {
    color: var(--negro);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.benefit-content p {
    color: var(--gris-texto);
    line-height: 1.6;
}

/* Animaciones */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.feature-card:nth-child(2) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .why-choose-details {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        animation: none;
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
}






/* ----- Sección Videos ----- */
.videos {
    padding: 5rem 0;
    background: var(--gris-claro);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    background: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    color: var(--negro);
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--gris-texto);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}




/* Menú móvil */
.mobile-menu-btn {
    display: none; /* Oculto en desktop */
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* Mostrar en móvil */
    }

    nav ul {
        display: none; /* Ocultar menú principal */
        flex-direction: column;
        width: 100%;
        background: var(--negro);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 1rem 0;
        z-index: 99;
    }

    nav ul.active {
        display: flex; /* Mostrar al hacer clic */
    }

    /* Ajustes para dropdowns en móvil */
    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
    }

    .dropdown-menu li a {
        color: var(--blanco) !important;
        padding-left: 1.5rem !important;
    }
}






































@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem !important;
    }
    .hero p {
        font-size: 1rem !important;
    }
}


@media (max-width: 768px) {
    .quote-content {
        grid-template-columns: 1fr !important;
    }
    .quote-image {
        min-height: 250px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .services-grid, .projects-grid, .corporate-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
}

document.querySelectorAll('a[href^="#"]').forEach(anchor => {
    anchor.addEventListener('click', function(e) {
        e.preventDefault();
        const targetId = this.getAttribute('href');
        const targetElement = document.querySelector(targetId);
        
        window.scrollTo({
            top: targetElement.offsetTop - 100, // Más espacio para el header
            behavior: 'smooth'
        });
    });
});


@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}




/* Estilos para los modales */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--blanco);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gris-texto);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--azul-primario);
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    color: var(--azul-primario);
    font-size: 1.8rem;
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.modal-features i {
    color: var(--azul-primario);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.modal-footer {
    margin-top: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        max-width: 300px;
        margin: 0 auto;
    }
}



 .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo img {
            height: 50px;
            width: auto;
            transition: all 0.3s ease;
        }

        /* Para hacer el logo responsive en móviles */
        @media (max-width: 768px) {
            .logo img {
                height: 40px;
            }
            
            .header-content {
                flex-direction: column;
                text-align: center;
                gap: 1rem;
            }
        }




            


/* ----- Estilos para iconos de servicios ----- */
.service-img-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* ----- Estilos para modales de servicios ----- */
.service-modal-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-modal-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.service-modal-images img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-modal-images img:hover {
    transform: scale(1.02);
}

.service-modal-text {
    padding: 1rem 0;
}

.service-modal-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-modal-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.service-modal-features i {
    color: var(--azul-primario);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.service-benefits {
    background: rgba(60, 63, 231, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--azul-primario);
}

.service-benefits h4 {
    color: var(--negro);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-modal-image img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* Responsive para modales */
@media (max-width: 768px) {
    .service-modal-content {
        grid-template-columns: 1fr;
    }
    
    .service-modal-images {
        grid-template-columns: 1fr;
    }
}






/* ----- Estilos para La Empresa - Texto descriptivo ----- */
.company-description {
    margin-bottom: 3rem;
    text-align: center;
}

.company-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.highlight-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--negro);
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    padding: 0 2rem;
}

.highlight-text::before,
.highlight-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--azul-primario);
    opacity: 0.3;
    position: absolute;
    font-family: Georgia, serif;
}

.highlight-text::before {
    top: -1rem;
    left: 0;
}

.highlight-text::after {
    bottom: -2rem;
    right: 0;
}

.call-to-action {
    font-size: 1.1rem;
    color: var(--negro);
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(86, 60, 231, 0.1) 0%, rgba(86, 60, 231, 0.05) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--azul-primario);
}

.testimonial-quote {
    position: relative;
    padding: 2rem;
    background: var(--gris-claro);
    border-radius: 8px;
    margin-top: 2rem;
}

.testimonial-quote i:first-child {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 2rem;
    color: var(--azul-primario);
    opacity: 0.2;
}

.testimonial-quote i:last-child {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 2rem;
    color: var(--azul-primario);
    opacity: 0.2;
}

.testimonial-quote blockquote {
    font-style: italic;
    color: var(--negro);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0 2rem;
    position: relative;
}

.testimonial-quote blockquote::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--azul-primario);
    border-radius: 2px;
}

/* Animaciones para el texto */
.company-text {
    animation: fadeInUp 1s ease-out;
}

.highlight-text {
    animation: fadeIn 1s ease-out 0.3s both;
}

.call-to-action {
    animation: fadeIn 1s ease-out 0.6s both;
}

.testimonial-quote {
    animation: fadeIn 1s ease-out 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive para La Empresa */
@media (max-width: 768px) {
    .company-text {
        padding: 1.5rem;
    }
    
    .highlight-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .highlight-text::before,
    .highlight-text::after {
        font-size: 2rem;
    }
    
    .highlight-text::before {
        top: -0.5rem;
    }
    
    .highlight-text::after {
        bottom: -1.5rem;
    }
    
    .call-to-action {
        font-size: 1rem;
    }
    
    .testimonial-quote {
        padding: 1.5rem;
    }
    
    .testimonial-quote blockquote {
        font-size: 1rem;
        padding: 0 1rem;
    }
}


/* ----- Estilos para La Empresa - Imagen de fondo corregida ----- */
.about-subsection {
    /* Ruta ABSOLUTA desde la raíz del sitio - Opción recomendada */
    background-image: url('/zpinfosac-web/img/LA-EMPRESA.png');
    
    /* O usar ruta relativa (prueba ambas) */
    /* background-image: url('../img/LA-EMPRESA.png'); */
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 5rem 0;
    min-height: 600px; /* Asegura altura mínima */
    display: flex;
    align-items: center;
}



/* Capa overlay para mejorar la legibilidad del texto */
.about-subsection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.20); /* Fondo blanco semitransparente */
    z-index: 1;
}

.about-subsection > .container {
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre el overlay */
}

/* Ajustes para el texto sobre la nueva imagen de fondo */
.company-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Mejora el contraste para mejor legibilidad */
.highlight-text {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.22rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.8rem;
}

.call-to-action {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(77, 60, 231, 0.08) 0%, rgba(77, 60, 231, 0.04) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--rojo-primario);
    margin-bottom: 2rem;
}

.testimonial-quote {
    background: rgba(60, 86, 231, 0.05);
    border-radius: 10px;
    padding: 1.8rem;
    border: 1px solid rgba(71, 60, 231, 0.15);
}

.testimonial-quote blockquote {
    color: #2c3e50;
    font-style: italic;
    text-align: center;
    margin: 0;
    font-size: 1.15rem;
}

/* Ajusta las formas decorativas para que destaquen sobre el nuevo fondo */
.decor-shape {
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .about-subsection {
        padding: 2.5rem 0;
        min-height: 500px;
        background-position: 60% center;
    }
    
    .company-text {
        padding: 1.8rem;
        margin: 0 1rem;
    }
    
    .highlight-text {
        font-size: 1.1rem;
    }
    
    .call-to-action {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .testimonial-quote {
        padding: 1.4rem;
    }
    
    .testimonial-quote blockquote {
        font-size: 1.05rem;
    }
}






/* Asegurar que la cuadrícula de servicios se adapte a 6 elementos */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Responsive para servicios */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* SECCIÓN SOCIOS / PARTNERS */
.partners {
    padding: 60px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.partners .section-title h2 {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 10px;
}

.partners .subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 35px;
}

/* Tarjeta del primer socio */
.partner-card {
    max-width: 700px;
    margin: 0 auto 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.partner-card img {
    width: 150px;
    display: block;
    margin: 0 auto 15px;
    border-radius: 8px;
}

/* CONTENEDOR DE LOGOS EN HORIZONTAL */
.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap; /* Para móviles se acomoda automáticamente */
}

/* Logos más pequeños */
.partners-logos img {
    width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Efecto hover */
.partners-logos img:hover {
    transform: scale(1.1);
}
