/* Variables y reset mejorado */

:root {
    --primary: #3C5A72;
    --secondary: #3C5A72;
    --accent: #E27D47;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 70px;
}


/* Header optimizado */

header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo img {
    height: 70px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}


/* Carrusel mejorado */

.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slides-container {
    transform: translateX(0%);
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.btn:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background: #fff;
    transform: scale(1.2);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}


/* Sección de servicios optimizada */

.services {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 20px auto 0;
    text-align: justify;
    hyphens: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    background: var(--secondary);
    color: white;
    height: 150px;
    display: grid;
    place-items: center;
    font-size: 4rem;
}

.service-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-content p {
    text-align: justify;
    hyphens: auto;
    flex-grow: 1;
}

.service-content ul {
    list-style: none;
    margin: 20px 0;
}

.service-content ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.service-content ul li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-right: 10px;
}

.service-content .btn {
    margin-top: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Sección Asesorías Gratis */

.asesorias {
    padding: 80px 5%;
    background: #f9f9f9;
}

.asesorias .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.asesorias .blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.asesorias .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.asesorias .blog-image {
    height: 200px;
    overflow: hidden;
}

.asesorias .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.asesorias .blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.asesorias .blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.asesorias .blog-meta {
    display: block;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.asesorias .blog-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.asesorias .blog-content p {
    color: var(--gray);
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
    flex-grow: 1;
}

.asesorias .blog-cta {
    margin-top: auto;
}

.asesorias .blog-cta .btn {
    background: var(--primary);
    padding: 10px 20px;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.asesorias .blog-cta .btn:hover {
    background: var(--secondary);
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

.section-cta .btn {
    background: var(--accent);
    padding: 12px 30px;
}

.section-cta .btn:hover {
    background: #e67e22;
}


/* Sección Limpia como un Experto */

.limpieza-experto {
    padding: 80px 5%;
    background: white;
}

.consejos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.consejo-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.consejo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.consejo-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.consejo-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.consejo-card p {
    color: var(--gray);
    margin-bottom: 20px;
    text-align: justify;
    hyphens: auto;
    flex-grow: 1;
}

.consejo-card .btn {
    background: var(--accent);
    padding: 8px 20px;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.consejo-card .btn:hover {
    background: #e67e22;
}


/* Sección Plan de Emergencia */

.emergency-plan {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.emergency-content {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.emergency-main {
    flex: 2;
}

.emergency-sidebar {
    flex: 1;
}

.emergency-info h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.emergency-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent);
}

.emergency-info p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.legal-quote {
    background: #e9f2f9;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 5px 5px 0;
}

.legal-quote p {
    font-style: italic;
    margin-bottom: 15px;
}

.legal-quote p:last-child {
    margin-bottom: 0;
}

.warning-text {
    font-weight: 600;
    color: var(--accent);
    font-size: 1.1rem;
    text-align: center;
    padding: 15px;
    background: rgba(226, 125, 71, 0.1);
    border-radius: 5px;
    margin: 25px 0;
}

.emergency-benefits {
    margin: 40px 0;
}

.emergency-benefits h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.benefit-text p {
    margin: 0;
    color: var(--gray);
}

.emergency-cta {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-top: 40px;
}

.emergency-cta p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.emergency-btn {
    background: var(--accent);
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-block;
}

.emergency-btn:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}


/* Sidebar */

.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    text-align: center;
    transition: var(--transition);
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.sidebar-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.sidebar-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.sidebar-card p {
    color: var(--gray);
    margin: 0;
}

.sidebar-cta {
    text-align: center;
    margin-top: 20px;
}


/* Responsive */

@media (max-width: 768px) {
    .emergency-content {
        flex-direction: column;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    .emergency-info h3 {
        font-size: 1.5rem;
    }
    .emergency-benefits h3 {
        font-size: 1.4rem;
    }
    .emergency-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}


/* Sección Decreto 67 */

.decreto-section {
    padding: 80px 5%;
    background: white;
}

.decreto-content {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.decreto-main {
    flex: 2;
}

.decreto-sidebar {
    flex: 1;
}

.decreto-info h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 30px 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.decreto-info h3:first-child {
    margin-top: 0;
}

.decreto-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent);
}

.decreto-info p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.decreto-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: var(--shadow-md);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.highlight-item i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.highlight-item h4 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.highlight-item p {
    margin: 0;
    opacity: 0.9;
}

.evaluation-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.criteria-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.criteria-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.criteria-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.criteria-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.criteria-card ul {
    margin-top: 15px;
    padding-left: 20px;
}

.criteria-card li {
    margin-bottom: 8px;
    color: var(--gray);
}

.requirement-alert {
    display: flex;
    gap: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.alert-icon {
    color: #856404;
    font-size: 2rem;
    flex-shrink: 0;
}

.alert-content h4 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.alert-content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.alert-content li {
    margin-bottom: 8px;
    color: #856404;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.benefit-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-card.economic {
    border-top-color: #28a745;
}

.benefit-card.operational {
    border-top-color: #17a2b8;
}

.benefit-card.organizational {
    border-top-color: #6f42c1;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.benefit-icon.economic {
    background: #28a745;
}

.benefit-icon.operational {
    background: #17a2b8;
}

.benefit-icon.organizational {
    background: #6f42c1;
}

.benefit-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.benefit-card p {
    margin: 0;
    color: var(--gray);
}

.documentation-requirements {
    margin: 40px 0;
}

.documentation-requirements h3 {
    text-align: center;
    margin-bottom: 30px;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.doc-category {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.doc-category h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.doc-category ul {
    padding-left: 20px;
}

.doc-category li {
    margin-bottom: 8px;
    color: var(--gray);
}

.process-timeline {
    margin: 40px 0;
}

.process-timeline h3 {
    text-align: center;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-date {
    flex: 0 0 150px;
    font-weight: 600;
    color: var(--primary);
    padding-right: 20px;
    text-align: right;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-left: 20px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.timeline-content h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content p {
    margin: 0;
    color: var(--gray);
}

.decreto-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}

.decreto-cta p {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.decreto-btn {
    background: var(--accent);
    font-size: 1.1rem;
    padding: 15px 35px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-block;
    color: white;
    text-decoration: none;
}

.decreto-btn:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: white;
}


/* Sidebar Decreto 67 */

.decreto-sidebar .sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.decreto-sidebar .sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.decreto-sidebar .sidebar-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.decreto-sidebar .sidebar-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.decreto-sidebar .sidebar-card p {
    color: var(--gray);
    margin: 0;
}

.decreto-sidebar .sidebar-cta {
    text-align: center;
    margin-top: 20px;
}


/* Responsive */

@media (max-width: 768px) {
    .decreto-content {
        flex-direction: column;
    }
    .highlight-item {
        flex-direction: column;
        text-align: center;
    }
    .evaluation-criteria {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .doc-grid {
        grid-template-columns: 1fr;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        flex-direction: column;
    }
    .timeline-date {
        flex: none;
        text-align: left;
        padding-right: 0;
        margin-bottom: 10px;
        font-size: 1.1rem;
    }
    .timeline-content {
        margin-left: 40px;
    }
    .timeline-content::before {
        left: -10px;
        border-right: 10px solid white;
        border-left: none;
    }
    .requirement-alert {
        flex-direction: column;
        text-align: center;
    }
}


/* Sección IA en Prevención */

.ia-section {
    padding: 80px 5%;
    background: #f8f9fa;
}

.ia-content {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.ia-main {
    flex: 2;
}

.ia-sidebar {
    flex: 1;
}

.ia-info h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.ia-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent);
}

.ia-info p {
    margin-bottom: 30px;
    line-height: 1.7;
}

.ia-benefits {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ia-benefit {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ia-benefit:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.benefit-text p {
    margin: 0;
    color: var(--gray);
}


/* Sidebar IA */

.ia-sidebar .sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.ia-sidebar .sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.ia-sidebar .sidebar-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.ia-sidebar .sidebar-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.ia-sidebar .sidebar-card p {
    color: var(--gray);
    margin: 0;
}


/* Sección Charlas de Seguridad */

.charlas-section {
    padding: 80px 5%;
    background: white;
}

.charlas-content {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.charlas-main {
    flex: 2;
}

.charlas-sidebar {
    flex: 1;
}

.charlas-info h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 30px 0 20px;
    position: relative;
    padding-bottom: 10px;
}

.charlas-info h3:first-child {
    margin-top: 0;
}

.charlas-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent);
}

.charlas-info p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.charlas-highlight {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: var(--shadow-md);
}

.charlas-highlight .highlight-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.charlas-highlight .highlight-item i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.charlas-highlight .highlight-item h4 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.charlas-highlight .highlight-item p {
    margin: 0;
    opacity: 0.9;
}

.importance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.importance-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.importance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.importance-card:nth-child(1) {
    border-top-color: #dc3545;
}

.importance-card:nth-child(2) {
    border-top-color: #28a745;
}

.importance-card:nth-child(3) {
    border-top-color: #ffc107;
}

.importance-card:nth-child(4) {
    border-top-color: #17a2b8;
}

.importance-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
}

.importance-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.importance-card p {
    margin: 0;
    color: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-item {
    display: flex;
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature-text h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-text p {
    margin: 0;
    color: var(--gray);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 25px 0;
}

.topic-list {
    list-style: none;
    padding: 0;
}

.topic-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    color: var(--gray);
}

.topic-list i {
    color: #28a745;
    margin-right: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}


/* Sidebar Charlas */

.charlas-sidebar .sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    margin-bottom: 25px;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.charlas-sidebar .sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.charlas-sidebar .sidebar-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.charlas-sidebar .sidebar-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.charlas-sidebar .sidebar-card p {
    color: var(--gray);
    margin: 0 0 15px;
}

.package-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin: 15px 0;
}

.charlas-btn {
    background: var(--accent);
    font-size: 1rem;
    padding: 12px 25px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-block;
    color: white;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.charlas-btn:hover {
    background: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: white;
}


/* CTA Charlas */

.charlas-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-top: 40px;
}

.cta-content h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-content p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* Responsive */

@media (max-width: 768px) {
    .charlas-content {
        flex-direction: column;
    }
    .importance-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    .topics-grid {
        grid-template-columns: 1fr;
    }
    .charlas-highlight .highlight-item {
        flex-direction: column;
        text-align: center;
    }
    .charlas-cta {
        padding: 30px 20px;
    }
    .cta-content h3 {
        font-size: 1.5rem;
    }
}


/* Sección IA en Prevención */

.ia-section {
    padding: 80px 5%;
    background: #f8f9fa;
}

.ia-content {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.ia-main {
    flex: 2;
}

.ia-sidebar {
    flex: 1;
}

.ia-info h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.ia-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--accent);
}

.ia-info p {
    margin-bottom: 30px;
    line-height: 1.7;
}

.ia-benefits {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ia-benefit {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.ia-benefit:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.benefit-text p {
    margin: 0;
    color: var(--gray);
}


/* Sidebar IA */

.ia-sidebar .sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary);
}

.ia-sidebar .sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.ia-sidebar .sidebar-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.ia-sidebar .sidebar-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.ia-sidebar .sidebar-card p {
    color: var(--gray);
    margin: 0;
}


/* Sección de Cursos */

.courses-section {
    max-width: 1200px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-icon {
    background: var(--secondary);
    color: white;
    height: 100px;
    display: grid;
    place-items: center;
    font-size: 3rem;
}

.course-card h3 {
    color: var(--primary);
    margin: 20px 25px 15px;
    font-size: 1.4rem;
}

.course-card p {
    margin: 0 25px 20px;
    color: var(--gray);
    line-height: 1.6;
    flex-grow: 1;
}

.course-card ul {
    margin: 0 25px 20px;
    padding-left: 20px;
}

.course-card li {
    margin-bottom: 8px;
    color: var(--gray);
    position: relative;
    padding-left: 10px;
}

.course-card li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: -10px;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin: 10px 25px 20px;
}

.course-btn {
    margin: 0 25px 25px;
    background: var(--accent);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.course-btn:hover {
    background: #e67e22;
}


/* Agregar al final del archivo style.css */


/* Sección de Redes Sociales Mejorada */

.social-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.social-card {
    background: white;
    border-radius: 15px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}

.social-card.facebook::before {
    background: #1877F2;
}

.social-card.instagram::before {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-card.linkedin::before {
    background: #0077B5;
}

.social-card.youtube::before {
    background: #FF0000;
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.social-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.social-card.facebook .social-icon {
    background: #1877F2;
}

.social-card.instagram .social-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-card.linkedin .social-icon {
    background: #0077B5;
}

.social-card.youtube .social-icon {
    background: #FF0000;
}

.social-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.social-card p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.6;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}

.social-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    color: white;
}

.social-cta {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.social-cta h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.social-cta p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}


/* Botón de WhatsApp Flotante */

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    background: #128C7E;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* Responsive para WhatsApp */

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    .whatsapp-tooltip {
        display: none;
    }
    .social-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* Responsive */

@media (max-width: 768px) {
    .ia-content {
        flex-direction: column;
    }
    .ia-benefit {
        flex-direction: column;
        text-align: center;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .benefit-icon {
        margin: 0 auto;
    }
}


/* Sección de Cursos */

.courses-section {
    max-width: 1200px;
    margin: 0 auto;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-icon {
    background: var(--secondary);
    color: white;
    height: 100px;
    display: grid;
    place-items: center;
    font-size: 3rem;
}

.course-card h3 {
    color: var(--primary);
    margin: 20px 25px 15px;
    font-size: 1.4rem;
}

.course-card p {
    margin: 0 25px 20px;
    color: var(--gray);
    line-height: 1.6;
    flex-grow: 1;
}

.course-card ul {
    margin: 0 25px 20px;
    padding-left: 20px;
}

.course-card li {
    margin-bottom: 8px;
    color: var(--gray);
    position: relative;
    padding-left: 10px;
}

.course-card li::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: -10px;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin: 10px 25px 20px;
}

.course-btn {
    margin: 0 25px 25px;
    background: var(--accent);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.course-btn:hover {
    background: #e67e22;
}


/* Responsive */

@media (max-width: 768px) {
    .ia-content {
        flex-direction: column;
    }
    .ia-benefit {
        flex-direction: column;
        text-align: center;
    }
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .benefit-icon {
        margin: 0 auto;
    }
}


/* Formulario de contacto mejorado */

.contact-form {
    background: var(--secondary);
    padding: 80px 5%;
    color: white;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid var(--accent);
    background: #fff;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}


/* Footer */

footer {
    background: var(--dark);
    color: white;
    padding: 60px 5% 30px;
    margin-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 10px;
    font-size: 1.8rem;
    color: var(--accent);
}

.footer-logo img {
    height: 70px;
    width: auto;
}

.footer-about p {
    margin-bottom: 20px;
    color: #ddd;
    text-align: justify;
    hyphens: auto;
}

.footer-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links ul li a i {
    margin-right: 10px;
    color: var(--accent);
    width: 20px;
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ddd;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.2rem;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}


/* Animaciones */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive mejorado */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px;
    }
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero {
        height: 400px;
    }
    .slide-content h2 {
        font-size: 1.8rem;
    }
    .slide-content p {
        font-size: 1rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }
    .blog-grid,
    .consejos-container {
        grid-template-columns: 1fr;
    }
    .service-content p,
    .blog-content p,
    .consejo-card p,
    .footer-about p,
    .section-title p {
        text-align: left;
        hyphens: none;
    }
    .carousel-controls {
        bottom: 10px;
    }
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}


/* Animaciones para elementos interactivos */

@media (prefers-reduced-motion: no-preference) {
    .btn:hover,
    .service-card:hover,
    .social-links a:hover,
    .blog-card:hover,
    .consejo-card:hover {
        transition: var(--transition);
    }
}


/* Estilos para páginas de artículos */

.article-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-meta {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-content h2 {
    color: var(--primary);
    margin: 30px 0 15px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    margin-top: 40px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.back-button:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.back-button i {
    margin-right: 8px;
}


/* Mejoras responsivas para artículos */

@media (max-width: 768px) {
    .article-container {
        padding: 60px 15px;
    }
    .article-image {
        height: 250px;
    }
    .article-content {
        font-size: 1rem;
    }
}