/* Base Styles */
:root {
    --primary-color: #D03523; /* Rojo corporativo */
    --secondary-color: #004B8D; /* Azul corporativo */
    --accent-color: #27AE60; /* Verde para elementos de acción */
    --light-color: #F8F9FA; /* Color claro para fondos */
    --dark-color: #343A40; /* Color oscuro para textos */
    --gray-color: #6C757D; /* Color gris para textos secundarios */
    --success-color: #28A745; /* Verde para éxito */
    --warning-color: #FFC107; /* Amarillo para advertencias */
    --info-color: #17A2B8; /* Azul claro para información */
    --font-primary: 'Inter', sans-serif;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #c12d1e;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #003b70;
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.main-header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-img {
    height: 50px;
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    padding: 5px 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 2px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* Secciones */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
}

.section-description {
    font-size: 18px;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background-image: url('../img/planta1.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Nosotros Section */
.nosotros-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.nosotros-text {
    flex: 1;
}

.nosotros-text p {
    font-size: 18px;
    margin-bottom: 30px;
}

.nosotros-text h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.nosotros-image {
    flex: 1;
    box-shadow: var(--box-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.pilares-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.pilares-list li {
    display: flex;
    gap: 20px;
}

.pilar-icon {
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.pilar-content h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

/* Transformación Section */
.transformacion-text {
    font-size: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.transformacion-flow {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.flow-item {
    text-align: center;
    flex: 1;
    min-width: 180px;
    padding: 0 10px;
}

.flow-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 30px;
}

.flow-icon.blue {
    background-color: var(--secondary-color);
}

.flow-icon.light-blue {
    background-color: #3498DB;
}

.flow-icon.green {
    background-color: var(--accent-color);
}

.flow-icon.purple {
    background-color: #9B59B6;
}

.flow-icon.red {
    background-color: var(--primary-color);
}

.flow-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.flow-item p {
    font-size: 14px;
    color: var(--gray-color);
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
    padding: 0 5px;
}

.flow-timeline {
    display: flex;
    justify-content: space-between;
    max-width: 1000px;
    margin: 30px auto 10px;
}

.timeline-marker {
    font-size: 14px;
    color: var(--gray-color);
    position: relative;
    text-align: center;
    flex: 1;
}

.flow-subtitle {
    text-align: center;
    font-weight: 600;
    margin-top: 30px;
    color: var(--secondary-color);
}

/* Servicios Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 50px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-description {
    flex-grow: 1;
    margin-bottom: 20px;
}

.service-btn {
    align-self: flex-start;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.service-btn:hover {
    background-color: var(--primary-color);
}

/* Metodología Section */
.metodologia-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.metodologia-image {
    margin: 0 auto;
    max-width: 800px;
    box-shadow: var(--box-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.modelo-servicio h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.modelo-niveles {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.nivel-item {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 30px;
    position: relative;
}

.nivel-item h4 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
}

.nivel-item ul {
    margin-bottom: 20px;
}

.nivel-item ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.nivel-item ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.nivel-beneficios {
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}

.nivel-1 h4 {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.nivel-2 h4 {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.nivel-3 h4 {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.nivel-1 .nivel-beneficios {
    color: var(--primary-color);
    background-color: rgba(208, 53, 35, 0.1);
}

.nivel-2 .nivel-beneficios {
    color: var(--secondary-color);
    background-color: rgba(0, 75, 141, 0.1);
}

.nivel-3 .nivel-beneficios {
    color: var(--accent-color);
    background-color: rgba(39, 174, 96, 0.1);
}

/* Casos Section */
.casos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.caso-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.caso-card:hover {
    transform: translateY(-10px);
}

.caso-imagen {
    height: 250px;
    overflow: hidden;
}

.caso-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.caso-card:hover .caso-imagen img {
    transform: scale(1.05);
}

.caso-contenido {
    padding: 25px;
}

.caso-contenido h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.caso-contenido ul {
    list-style: disc;
    padding-left: 20px;
}

.caso-contenido ul li {
    margin-bottom: 10px;
}

/* Tienda Section */
.tienda-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.producto-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-10px);
}

.producto-imagen {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    padding: 20px;
}

.producto-imagen img {
    max-height: 160px;
    object-fit: contain;
    transition: var(--transition);
}

.producto-card:hover .producto-imagen img {
    transform: scale(1.05);
}

.producto-contenido {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.producto-contenido h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.producto-contenido p {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--gray-color);
    flex-grow: 1;
}

.producto-precio {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
}

.producto-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.producto-btn:hover {
    background-color: var(--primary-color);
}

.tienda-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.pagination-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:disabled {
    background-color: var(--gray-color);
    cursor: not-allowed;
}

.pagination-btn:not(:disabled):hover {
    background-color: var(--primary-color);
}

.page-numbers {
    font-weight: 600;
}

.tienda-more {
    text-align: center;
}

/* Contacto Section */
.contacto-content {
    display: flex;
    gap: 50px;
}

.contacto-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contacto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
}

.social-link {
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #999;
    font-size: 14px;
}

.footer-links h4, .footer-services h4, .footer-contact h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-services h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul, .footer-services ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #999;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-services li, .footer-contact li {
    color: #999;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #777;
}

.footer-social {
    display: flex;
    gap: 15px;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.modal p {
    margin-bottom: 20px;
}

.modal ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.modal ul li {
    margin-bottom: 10px;
}

.modal img {
    border-radius: 8px;
    margin-top: 20px;
    max-height: 400px;
    display: block;
    margin: 0 auto;
}

/* Modal Producto */
.producto-modal .modal-content {
    max-width: 1000px;
    padding: 0;
}

.producto-modal-content {
    display: flex;
    flex-wrap: wrap;
}

.producto-modal-imagen {
    flex: 1;
    min-width: 300px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.producto-modal-imagen img {
    max-height: 300px;
    object-fit: contain;
}

.producto-modal-info {
    flex: 2;
    min-width: 400px;
    padding: 30px;
}

.producto-modal-info h2 {
    font-size: 26px;
}

.producto-caracteristicas {
    margin-bottom: 30px;
}

.producto-caracteristicas h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.producto-precio {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
}

/* WhatsApp Button */
.whatsapp-btn {
    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 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 900;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .nosotros-content {
        flex-direction: column;
    }
    
    .nosotros-image {
        order: -1;
    }
    
    .transformacion-flow {
        flex-wrap: wrap;
    }
    
    .flow-item {
        flex: 0 0 45%;
        margin-bottom: 30px;
    }
    
    .flow-arrow {
        display: none;
    }
    
    .contacto-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        gap: 0;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 12px 0;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .flow-item {
        flex: 0 0 100%;
    }
    
    .casos-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .modelo-niveles {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .btn {
        width: 100%;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .producto-modal-content {
        flex-direction: column;
    }
    
    .producto-modal-imagen {
        min-height: 250px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

.hidden {
    display: none;
}

/* Estados de Scroll */
.main-header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

/* Efecto hover en imágenes */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.3s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}
	