/* Estilos generales */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2ecc71;
    --accent-color: #27ae60;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-green: #27ae60;
    --light-green: #2ecc71;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navegación */
.navbar {
    background-color: #fff !important;
    border-bottom: 3px solid var(--secondary-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

.navbar-toggler {
    border-color: var(--secondary-color);
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
}

.navbar-toggler-icon:after {
    content: '';
    display: block;
    width: 24px;
    height: 3px;
    background: var(--secondary-color);
    margin: 6px 0;
    border-radius: 2px;
    box-shadow: 0 8px 0 0 var(--secondary-color), 0 16px 0 0 var(--secondary-color);
}

/* Ajuste del logo en scroll */
.navbar.scrolled .logo-img {
    height: 35px;
}

/* Sección Hero */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
                url('../img/hero-bg.jpg') center/cover;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section .badge {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--secondary-color) !important;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.hero-buttons .btn {
    padding: 0.8rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-buttons .btn-outline-light {
    border-width: 2px;
}

.hero-buttons .btn-outline-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

/* Animación para los elementos del hero */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-features .feature-item {
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.hero-features .feature-item:nth-child(1) { animation-delay: 0.2s; }
.hero-features .feature-item:nth-child(2) { animation-delay: 0.4s; }
.hero-features .feature-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para el hero */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .brand-text {
        font-size: 1.3rem;
    }
}

/* Sección Servicios */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--secondary-color), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #555;
    font-size: 0.95rem;
}

.service-features li i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--dark-green);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Efecto de brillo al hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::after {
    transform: translateX(100%);
}

/* Responsive para servicios */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 2rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }
}

/* Sección Portafolio */
.portfolio-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay .btn {
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay .btn {
    transform: translateY(0);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.portfolio-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tech span {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive para portafolio */
@media (max-width: 768px) {
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-content h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-description {
        font-size: 0.9rem;
    }
}

/* Sección Nosotros */
#nosotros {
    background-color: var(--light-bg);
}

#nosotros h2 {
    text-align: center;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow:
        1px 1px 0 #2ecc71,
        2px 2px 0 #27ae60,
        3px 3px 8px rgba(46,204,113,0.25);
    transition: transform 0.3s, color 0.3s;
    transform-style: preserve-3d;
}
#nosotros h2:hover {
    transform: scale(1.05) rotateY(-8deg);
    color: var(--secondary-color);
}

#nosotros ul li {
    margin-bottom: 1rem;
}

#nosotros ul li i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Sección Contacto */
.form-control {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 204, 113, 0.25);
}

.contact-info {
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
}

/* Botones */
.btn-primary {
    background-color: var(--secondary-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
}

/* Banner Secundario */
.cta-banner {
    background: linear-gradient(45deg, var(--primary-color), var(--dark-green));
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png') repeat;
    opacity: 0.1;
    animation: slide 20s linear infinite;
}

.cta-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.cta-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
}

.cta-banner .btn-light {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cta-banner .btn-light:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes slide {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

/* Responsive para el banner secundario */
@media (max-width: 991px) {
    .cta-banner {
        text-align: center;
        padding: 3rem 0;
    }

    .cta-banner h2 {
        font-size: 2rem;
    }

    .cta-banner p {
        margin-bottom: 2rem;
    }

    .cta-banner .btn-light {
        margin-top: 1rem;
    }
}

/* Sección Nosotros Mejorada */
#nosotros {
    background-color: var(--light-bg);
}

.about-desc {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
}

.about-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(46,204,113,0.08);
    padding: 1.2rem 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1.5px solid #e6e6e6;
    min-height: 160px;
    position: relative;
    overflow: hidden;
}

.about-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.about-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--primary-color);
}

.about-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

.about-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(46,204,113,0.13);
    border-color: var(--secondary-color);
}

.about-card:hover i {
    color: var(--dark-green);
}

.about-counters {
    margin: 2rem 0 1rem 0;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.counter-box {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(46,204,113,0.07);
    padding: 1rem 1.5rem;
    text-align: center;
    min-width: 120px;
    border: 1.5px solid #e6e6e6;
    margin: 10px;
}

.counter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.2rem;
    transition: color 0.3s;
}

.counter-box p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0;
}

.about-img {
    max-width: 350px;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 4px 24px rgba(46,204,113,0.10);
    margin-top: 1rem;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.about-img:hover {
    transform: scale(1.04) rotate(-2deg);
}

@media (max-width: 991px) {
    .about-img {
        max-width: 250px;
    }
    .about-counters {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .about-card {
        min-height: 140px;
        padding: 1rem 0.7rem;
    }
    .about-img {
        max-width: 180px;
    }
    .about-counters {
        gap: 1rem;
    }
}

/* Sección Contacto Mejorada */
.bg-contact {
    background: linear-gradient(120deg, #e8f6ef 0%, #f8f9fa 100%);
    position: relative;
}

.contact-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(46,204,113,0.10);
    border: 1.5px solid #e6e6e6;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    z-index: 2;
}

.contact-card:hover {
    box-shadow: 0 16px 48px rgba(46,204,113,0.18);
    transform: translateY(-6px) scale(1.01);
}

.contact-card .form-control {
    border-radius: 8px;
    border: 1.5px solid #e6e6e6;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1.05rem;
}

.contact-card .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.15rem rgba(46,204,113,0.15);
}

.contact-card button.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--dark-green));
    border: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
}

.contact-card button.btn-primary:hover {
    background: var(--dark-green);
    transform: translateY(-2px) scale(1.03);
}

#contactSuccess {
    font-size: 1.1rem;
    border-radius: 8px;
    background: #eafaf1;
    color: var(--dark-green);
    border: 1.5px solid var(--secondary-color);
    text-align: center;
    animation: fadeIn 0.7s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-info-box {
    background: linear-gradient(120deg, #e8f6ef 60%, #fff 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(46,204,113,0.10);
    border: 1.5px solid #e6e6e6;
    padding: 2rem 2rem 1.5rem 2rem;
    min-height: 340px;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}

.contacto-titulo {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 1px 1px 0 #2ecc71, 2px 2px 0 #27ae60;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.08rem;
    color: #444;
    margin-bottom: 1.1rem;
    transition: color 0.3s;
}

.contact-icon {
    color: var(--secondary-color);
    font-size: 1.3rem;
    transition: color 0.3s, transform 0.3s;
}
.contacto-item:hover .contact-icon {
    color: var(--dark-green);
    transform: scale(1.2) rotate(-10deg);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}
.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.whatsapp-btn {
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(46,204,113,0.10);
    transition: background 0.3s, transform 0.2s;
}
.whatsapp-btn:hover {
    background: #25d366;
    color: #fff;
    transform: scale(1.04);
}

.email-tooltip {
    position: relative;
}
.email-tooltip[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    top: -2.2em;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 0.3em 0.8em;
    border-radius: 6px;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 10;
    opacity: 0.95;
}

/* Tarjeta especial SEO en Nosotros */
.about-seo-card {
    background: linear-gradient(90deg, #e8f6ef 60%, #fff 100%);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 18px rgba(46,204,113,0.10);
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.5rem;
    min-height: 120px;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.about-seo-card:hover {
    box-shadow: 0 8px 32px rgba(46,204,113,0.18);
    border-color: var(--dark-green);
}
.seo-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(46,204,113,0.10);
    background: #fff;
}
@media (max-width: 768px) {
    .about-seo-card {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 1rem 0.7rem;
    }
    .seo-img {
        width: 55px;
        height: 55px;
        margin-bottom: 0.5rem;
    }
}

#servicios h2 {
    text-align: center;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow:
        1px 1px 0 #2ecc71,
        2px 2px 0 #27ae60,
        3px 3px 8px rgba(46,204,113,0.25);
    transition: transform 0.3s, color 0.3s;
    transform-style: preserve-3d;
}
#servicios h2:hover {
    transform: scale(1.05) rotateY(-8deg);
    color: var(--secondary-color);
}

#portafolio h2 {
    text-align: center;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow:
        1px 1px 0 #2ecc71,
        2px 2px 0 #27ae60,
        3px 3px 8px rgba(46,204,113,0.25);
    transition: transform 0.3s, color 0.3s;
    transform-style: preserve-3d;
}
#portafolio h2:hover {
    transform: scale(1.05) rotateY(-8deg);
    color: var(--secondary-color);
}

#contacto h2 {
    text-align: center;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow:
        1px 1px 0 #2ecc71,
        2px 2px 0 #27ae60,
        3px 3px 8px rgba(46,204,113,0.25);
    transition: transform 0.3s, color 0.3s;
    transform-style: preserve-3d;
}
#contacto h2:hover {
    transform: scale(1.05) rotateY(-8deg);
    color: var(--secondary-color);
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
}
body > *:not(#bg-canvas) {
    position: relative;
    z-index: 1;
} 