/* Estilos Generales */
:root {
    /* Colores de la marca */
    --primary-color: #000000;
    --secondary-color: #8BC34A;
    --background-color: #FFFFFF;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
}

.section-line {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
   width: 130px;
    transition: all 0.3s ease;
}

.header.scrolled .logo img {
    width: 90px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.pexels.com/photos/8297044/pexels-photo-8297044.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 90px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Nosotros Section */
.nosotros {
    background-color: var(--light-gray);
}

.nosotros-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.nosotros-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.text-highlight {
    font-size: 1.2rem;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.value-card p {
    color: var(--dark-gray);
}

/* Servicios Section */
.servicios-intro {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.servicio-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px var(--shadow-color);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(50px);
}

.servicio-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

/* Retraso escalonado para las tarjetas */
.servicio-card:nth-child(1) { transition-delay: 0.1s; }
.servicio-card:nth-child(2) { transition-delay: 0.2s; }
.servicio-card:nth-child(3) { transition-delay: 0.3s; }
.servicio-card:nth-child(4) { transition-delay: 0.4s; }
.servicio-card:nth-child(5) { transition-delay: 0.5s; }

.servicio-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.servicio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.servicio-card:hover .servicio-image img {
    transform: scale(1.1);
}

.servicio-content {
    padding: 25px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.servicio-icon {
    position: absolute;
    top: -30px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.3);
}

.servicio-icon i {
    font-size: 1.8rem;
    color: white;
}

.servicio-content h3 {
    margin: 20px 0 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.servicio-content p {
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.servicio-items {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.servicio-items li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: var(--dark-gray);
}

.servicio-items li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Portafolio Section */
.portafolio {
    background-color: var(--light-gray);
}

.portafolio-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.testimonios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.testimonio {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.testimonio:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.testimonio-content {
    padding: 30px;
    position: relative;
}

.testimonio-content i.fa-quote-left {
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: 15px;
    left: 15px;
}

.testimonio-content p {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cliente-info {
    padding-top: 15px;
    border-top: 2px solid var(--light-gray);
}

.cliente-info h4 {
    font-weight: 600;
}

.cliente-info p {
    margin-bottom: 0;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.nota-portafolio {
    text-align: center;
    color: var(--dark-gray);
    margin-top: 30px;
}

/* Contacto Section */
.contacto-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item p {
    color: var(--dark-gray);
}

.contacto-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.2);
}

.required {
    color: #f44336;
}

.contacto-mapa {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    padding-top: 70px;
}

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

.footer-logo img {
    width: 130px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Hace que el logo sea blanco */
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    left: 0;
    bottom: 0;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #bbb;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bbb;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #bbb;
}

/* Estilos para la sección de créditos del footer */
.footer .py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.footer .mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.footer .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer .text-center {
    text-align: center;
}

.footer .text-white {
    color: white;
}

.footer .text-sm {
    font-size: 0.875rem;
}

.footer .hover\:opacity-80:hover {
    opacity: 0.8;
}

.footer .transition-colors {
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
}

/* Botón Regreso Arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

/* Botón flotante de WhatsApp */
.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;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1001;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: white;
}

.whatsapp-float i {
    font-size: 2rem;
}

/* Posición del botón de WhatsApp en pantallas grandes */
@media (min-width: 992px) {
    .whatsapp-float {
        top: 30px;
        bottom: auto;
    }
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background-color: white;
        box-shadow: 0 10px 15px var(--shadow-color);
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .header.scrolled .nav-menu {
        top: 60px;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 15px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--medium-gray);
    }
    
    .hero {
        margin-top: 70px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .values-grid,
    .testimonios {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .logo img {
        height: 60px;
    }
    
    .header.scrolled .logo img {
        height: 50px;
    }
    
    .hero {
        margin-top: 65px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contacto-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
