:root {
    --primary: #003399;
    /* Royal blue from rednegocios.host */
    --primary-hover: #002266;
    --navy: #001A4D;
    /* Navy blue footer/header background */
    --bg-light: #FFFFFF;
    --bg-gray: #F5F5F5;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --border: #DDDDDD;
    --radius: 4px;
    /* More industrial square corners */
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Top Bar */
.top-bar {
    background: var(--navy);
    color: white;
    padding: 10px 0;
    font-size: 13px;
    text-align: right;
}

.top-bar .container {
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar a {
    color: white;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.7); /* 70% Transparent White */
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 35px; /* Height of top-bar */
    left: 0;
    right: 0;
    z-index: 100;
}

header .logo img {
    height: 120px;
}

header nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

header nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav .nav-menu li {
    padding: 10px 0;
}

header nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Submenu - Explicitly isolated from nav-menu flex */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 220px;
    padding: 15px 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    display: block; /* Vertical block layout */
}

.submenu li {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
}

.submenu a {
    color: var(--navy) !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
    text-transform: none !important;
    font-weight: 500 !important;
    display: block !important;
    width: 100%;
    white-space: normal;
    line-height: 1.4;
    transition: background 0.2s, color 0.2s;
}

.submenu a:hover {
    background: #f8faff;
    color: var(--primary) !important;
}

.dropdown {
    position: relative;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown i {
    font-size: 10px;
    transition: transform 0.3s;
}

.dropdown:hover i {
    transform: rotate(180deg);
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    color: var(--primary);
    font-size: 1.2rem;
    text-decoration: none;
}

/* Hero Section Base fix */
.hero {
    position: relative;
    height: 800px; /* Larger Hero */
    background: url('../img/hero-bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; 
    text-align: center;
}

.hero.calendario-hero {
    height: 600px;
    background-image: url('../img/calendario-hero.jpg');
}

.hero.calendario-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.contacto-hero {
    height: 600px;
    background-image: url('../img/servinse-contacto.png');
}

.hero.contacto-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.catalogo-hero {
    height: 500px;
    background-image: url('../img/catalogo-cursos.jpg');
}

.hero.catalogo-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.in-company-hero {
    height: 600px;
    background-image: url('../img/curso-in-company.jpg');
}

.hero.in-company-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.nosotros-hero {
    height: 600px;
    background-image: url('../img/servinse-nosotros-0.jpg');
}

.hero.nosotros-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.historia-hero {
    height: 600px;
    background-image: url('../img/historia-0.jpg');
}

.hero.historia-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.mision-vision-hero {
    height: 600px;
    background-image: url('../img/mision-vision.jpg');
}

.hero.apoyos-tecnico-hero {
    height: 500px;
    background-image: url('../img/mision-vision.jpg');
}

.hero.mision-vision-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.apoyos-tecnico-hero::before {
    background: rgba(0, 26, 77, 0.7); /* solid 70% navy blue overlay */
    display: block;
}

.hero.apoyos-tecnico-hero .hero-content {
    margin-top: 200px;
}

.hero.consultoria-hero {
    height: 600px;
    background-image: url('../img/consultoria.jpg');
}

.hero.consultoria-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.clientes-hero {
    height: 600px;
    background-image: url('../img/consultoria.jpg');
}

.hero.clientes-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.calderas-hero {
    height: 600px;
    background-image: url('../img/consultoria.jpg'); 
}

.hero.calderas-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.seguridad-hero {
    height: 600px;
    background-image: url('../img/servinse-nosotros-0.jpg'); /* Presumed nice security-related background */
}

.hero.seguridad-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.higiene-hero {
    height: 600px;
    background-image: url('../img/historia-0.jpg'); /* Presumed nice industrial background */
}

.hero.higiene-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

.hero.salud-hero { height: 600px; background-image: url('../img/consultoria.jpg'); }
.hero.proteccion-hero { height: 600px; background-image: url('../img/servinse-nosotros-0.jpg'); }
.hero.medio-ambiente-hero { height: 600px; background-image: url('../img/consultoria.jpg'); }

.hero.salud-hero::before, .hero.proteccion-hero::before, .hero.medio-ambiente-hero::before {
    background: linear-gradient(to bottom, rgba(0, 26, 77, 0.7), rgba(0, 51, 153, 0.5));
    display: block;
}

/* Catalog Grid & Search Styles */
.lms-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .lms-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .lms-grid-3 { grid-template-columns: 1fr; }
}

.lms-cat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.lms-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.lms-cat-image-wrapper {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #f8fafc;
}

.lms-cat-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.lms-cat-card:hover .lms-cat-image { transform: scale(1.1); }

.lms-cat-info {
    padding: 20px;
    text-align: center;
}

.lms-cat-nombre {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 15px;
}

.lms-cat-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--navy);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.lms-cat-card:hover .lms-cat-badge { background: var(--primary); }

/* Search Bar */
.lms-search-container { margin-bottom: 50px; display: flex; justify-content: center; }
.lms-search-wrapper { position: relative; width: 100%; max-width: 600px; }
.lms-search-input { width: 100%; padding: 15px 50px 15px 25px; border: 2px solid #e2e8f0; border-radius: 50px; font-size: 1rem; }
.lms-search-input:focus { border-color: var(--primary); outline: none; }
.lms-search-icon { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #94a3b8; }

/* Modal for search */
.lms-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center; }
.lms-modal-overlay.active { display: flex; }
.lms-modal-box { background: white; width: 90%; max-width: 800px; max-height: 80vh; border-radius: 15px; overflow-y: auto; }
.lms-modal-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: white; border-radius: 15px 15px 0 0; }
.lms-modal-body { padding: 30px; }
.lms-modal-close { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

.lms-search-item { padding: 15px 0; border-bottom: 1px solid #f1f5f9; }
.lms-search-item h4 { color: var(--navy); margin: 0 0 5px; }
.lms-search-item p { font-size: 0.9rem; color: #64748b; margin: 0 0 10px; }
.btn-ver-mas { font-size: 0.8rem; color: var(--primary); font-weight: 700; text-decoration: none; }

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none; /* Removed filters for 100% visibility */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: white; /* Force white text */
}

.hero h1 {
    font-size: 3.5rem; /* Larger title */
    margin-bottom: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white; /* Force white text */
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -50px;
    /* Overlap hero like original */
    position: relative;
    z-index: 3;
}

.stat-card {
    background: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius);
}

.stat-card .icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 14px;
    color: #666;
}

/* Featured Courses Section */
.featured-courses {
    padding: 80px 0;
    background: white;
}

.two-column-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.two-column-layout .text-content {
    flex: 1;
}

.two-column-layout .image-content {
    flex: 1;
}

.section-title-left {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 900;
}

.text-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

.text-content p.highlight {
    color: #777;
    font-weight: 700;
}

.btn-navy {
    background: var(--navy);
    color: white;
    padding: 15px 40px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background 0.3s;
    margin-top: 20px;
}

.btn-navy:hover {
    background: var(--primary);
}

.img-rounded-shadow {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Sectors Section */
.sectors {
    background-color: var(--bg-gray);
    padding: 80px 0;
}

.sectors .section-title h2 {
    margin-bottom: 50px;
    font-weight: 800;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sector-card {
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sector-card .sector-icon {
    width: 60px;
    height: 60px;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.sector-card h3 {
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 800;
}

.sector-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.sector-card:hover {
    background: white;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    visibility: hidden; /* Prevent interaction while hidden */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Main Services Sections */
.main-services {
    padding: 100px 0;
    background: white;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-image, .service-text {
    flex: 1;
}

.service-tag {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.service-title {
    color: var(--navy);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 30px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #777;
    font-size: 1.05rem;
}

.check-list i {
    color: var(--primary);
    margin-top: 5px;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary);
    text-transform: uppercase;
}

.section-title div {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto;
}

/* Cursos Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--bg-gray);
    padding: 20px;
    border-radius: var(--radius);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    position: relative;
    background-color: var(--navy); /* Base dark color */
    color: white;
    padding: 80px 0 20px;
    overflow: hidden;
}

/* Background Image with Transparency */
footer::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/hero-bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.3; /* 70% transparent */
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 51, 153, 0.35), rgba(0, 26, 77, 0.7)); /* 65% view top, 30% bottom */
    z-index: 2;
}

footer .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px;
    height: 2px;
    background: white;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.contact-info li {
    font-size: 13px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px !important;
    opacity: 0.9;
}

.contact-info i {
    width: 15px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: white;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-social a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 12px;
    opacity: 0.6;
}

/* Chat Widget */
#segurito-chat-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-trigger {
    width: 110px;
    height: 110px;
    background: white;
    border-radius: 50%;
    border: 5px solid var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 12px;
    overflow: hidden;
}

.chat-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.chat-trigger img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: var(--primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f0f2f5;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
}

.message.bot {
    background: white;
    align-self: flex-start;
}

.message.user {
    background: #d9fdd3;
    align-self: flex-end;
}

.chat-input-area {
    padding: 10px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
}

.chat-input-area input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

/* Mobile Toggle Hamburger (Global but hidden on desktop) */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg); }

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablets */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    header .logo img { height: 80px; }
    header nav { gap: 15px; }
    header nav a { font-size: 12px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
    .hero h1 { font-size: 2.8rem; }
}

/* Mobile Phones (768px and down) */
@media (max-width: 768px) {
    /* Header & Mobile Nav */
    .top-bar { display: none; }
    header { 
        top: 0; 
        padding: 10px 0; 
        background: white; 
        position: fixed; 
        box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    }
    .mobile-toggle { display: flex; }
    
    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    header nav.active {
        right: 0;
    }

    header nav .nav-menu { flex-direction: column; width: 100%; gap: 0; }
    header nav .nav-menu li { width: 100%; border-bottom: 1px solid #eee; padding: 0; position: relative; }
    header nav a { padding: 15px 0; font-size: 16px; justify-content: space-between; }

    /* Mobile Submenu - CLEAN ACCORDION STYLE */
    .submenu {
        display: none; /* Removed !important logic entirely */
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 15px 25px;
        min-width: 100%;
        background: transparent;
        transition: none;
    }

    /* Target using class added by JS */
    .dropdown.active > .submenu {
        display: block; /* The most reliable toggle */
    }

    /* Arrow icon behavior */
    .dropdown.active > a i {
        transform: rotate(180deg);
    }

    .social-icons { margin-top: 30px; justify-content: center; }

    /* Hero Mobile Refinements */
    .hero { height: 500px; }
    .hero-content { padding-top: 40px; }
    .hero.calendario-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.contacto-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.catalogo-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.in-company-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.nosotros-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.historia-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.mision-vision-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.consultoria-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.clientes-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.calderas-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.seguridad-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.higiene-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero.salud-hero, .hero.proteccion-hero, .hero.medio-ambiente-hero { height: 300px; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: var(--navy); }
    .hero::before { background: rgba(0, 0, 0, 0.45); display: block; }
    .hero h1 { font-size: 1.8rem; line-height: 1.2; padding: 0 10px; }
    .hero p { font-size: 0.9rem; padding: 0 15px; }

    /* Stats Mobile - 1 per row */
    .stats-grid { 
        grid-template-columns: 1fr !important; 
        margin-top: -30px; 
        padding: 0 20px;
    }
    .stat-card { padding: 20px; }

    /* Grids & Layouts */
    .two-column-layout { flex-direction: column; gap: 30px; text-align: center; }
    .section-title-left { font-size: 1.8rem; }
    .sectors-grid { grid-template-columns: 1fr !important; padding: 0 20px; }
    
    /* Services Mobile - Image TOP always */
    .service-item, .service-item.reverse { flex-direction: column; gap: 20px; text-align: center; margin-bottom: 50px; }
    .service-image { order: 1; width: 100%; }
    .service-text { order: 2; width: 100%; }
    .check-list li { justify-content: center; text-align: left; font-size: 0.95rem; }
    .service-title { font-size: 1.8rem; margin-bottom: 15px; }

    /* Footer Mobile - 1 col per row */
    .footer-grid { 
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important; 
        gap: 40px !important; 
        padding-bottom: 30px !important;
    }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-social { justify-content: center; }
    .contact-info li { justify-content: center; font-size: 12px; }
    footer .logo img { height: 70px; margin: 0 auto 15px; }
}

/* Small Screens */
@media (max-width: 480px) {
    header .logo img { height: 60px; }
}

/* LMS Calendar Styles */
.lms-calendar-container {
    font-family: 'Roboto', sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 12px;
}

.lms-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.lms-calendar-nav-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s;
}

.lms-calendar-nav-btn:hover {
    background: var(--primary-hover);
    color: white;
}

.lms-calendar-title {
    font-size: 24px;
    font-weight: 800;
    text-transform: capitalize;
    color: var(--navy);
}

.lms-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.lms-calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 12px;
    background: var(--bg-gray);
    border-radius: 8px;
    color: var(--navy);
    font-size: 14px;
    text-transform: uppercase;
}

.lms-calendar-day {
    min-height: 120px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    transition: all 0.2s;
}

.lms-calendar-day:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.lms-calendar-day.today {
    border: 2px solid var(--primary);
    background: #f8faff;
}

.lms-calendar-day.empty {
    border: 1px dashed #eee;
    background: #fafafa;
}

.lms-calendar-day-number {
    position: absolute;
    top: 8px;
    right: 8px;
    font-weight: 700;
    color: #999;
    font-size: 13px;
}

.lms-calendar-day.today .lms-calendar-day-number {
    color: var(--primary);
}

.lms-calendar-events {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lms-calendar-event {
    font-size: 10px;
    padding: 5px 8px;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    word-wrap: break-word;
    font-weight: 600;
    transition: transform 0.2s;
    line-height: 1.2;
}

.lms-calendar-event:hover {
    transform: scale(1.02);
}

.lms-event-curso {
    background: #eef2ff;
    border-left: 3px solid var(--primary);
}

.lms-event-modulo {
    background: #fffbeb;
    border-left: 3px solid #fbbf24;
}

/* Modal Styles */
.lms-cal-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 26, 77, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lms-cal-modal-overlay.active {
    display: flex;
}

.lms-cal-modal-box {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: calModalIn 0.3s ease-out;
}

@keyframes calModalIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.lms-cal-modal-header {
    padding: 20px 25px;
    background: var(--bg-gray);
    border-bottom: 1px solid #eee;
    position: relative;
}

.lms-cal-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.lms-cal-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    padding-right: 25px;
}

.lms-cal-modal-body {
    padding: 25px;
}

.lms-cal-info-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #555;
}

.lms-cal-info-row i {
    color: var(--primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.lms-cal-modal-actions {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.lms-cal-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lms-cal-btn-primary {
    background: var(--primary);
    color: #fff;
}

.lms-cal-btn-primary:hover {
    background: var(--primary-hover);
    color: white;
}

.lms-cal-btn-secondary {
    background: var(--bg-gray);
    color: var(--navy);
}

.lms-cal-btn-secondary:hover {
    background: #e5e7eb;
}

@media (max-width: 768px) {
    .lms-calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }
    .lms-calendar-day {
        min-height: 80px;
    }
    .lms-calendar-day-header {
        font-size: 11px;
        padding: 8px 4px;
    }
    .lms-calendar-event {
        font-size: 8px;
        padding: 3px 5px;
    }
    .lms-cal-modal-actions {
        flex-direction: column;
    }
    .lms-calendar-header .nav-text {
        display: none;
    }
}

/* Contact Form Styles */
.contact-container {
    max-width: 800px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
    outline: none;
}

.contact-form .btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    text-transform: uppercase;
}

.contact-form .btn-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.contact-form .btn-submit:active {
    transform: translateY(0);
}

/* Checkbox/Radio Styling */
.form-check-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.form-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-check-item input[type="checkbox"],
.form-check-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-item label {
    margin-bottom: 0;
    font-weight: 500;
}

.in-company-features {
    margin: 40px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.feature-list li i {
    color: var(--primary);
    margin-top: 4px;
}

.feature-list li strong {
    color: var(--navy);
}

/* About Us Layout Blocks */
.about-section {
    padding: 80px 0;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    display: block;
}

.about-text {
    flex: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--navy);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .about-row, .about-row.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
    .about-text p {
        font-size: 1rem;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 80px auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #cbd5e1;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12.5px;
    background-color: white;
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -12.5px;
}

.timeline-content {
    padding: 20px;
    background-color: white;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-content .year {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--navy);
    display: block;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

@media screen and (min-width: 769px) {
    /* Mueve todos los items a partir del segundo hacia arriba para lograr el efecto entrelazado/overlapping */
    .timeline-item:nth-child(n+2) {
        margin-top: -150px;
    }
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 18px;
    }

    .right {
        left: 0%;
    }
}

/* Mission & Vision Cards */
.mision-vision-section {
    padding: 100px 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.mv-card {
    background: white;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-10px);
}

.mv-image-container {
    width: 320px;
    height: 320px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mv-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mv-card h2 {
    color: var(--navy);
    font-size: 2.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.mv-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.mv-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
}

@media (max-width: 992px) {
    .mv-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 480px) {
    .mv-image-container {
        width: 260px;
        height: 260px;
    }
}

/* Consultoría and Gestoría Grid */
.cg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.cg-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.cg-card:hover {
    transform: translateY(-8px);
}

.cg-card img {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.cg-label {
    background: #1e293b;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 5px solid var(--primary);
}

.cg-label strong {
    color: var(--primary);
}

.cg-text-section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.cg-text-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--navy);
    margin-bottom: 25px;
}

/* Clientes Grid */
.lms-clientes-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    padding: 60px 0;
}

.lms-cliente-item {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1;
}

.lms-cliente-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(80%);
    transition: all 0.3s ease;
}

.lms-cliente-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.lms-cliente-item:hover img {
    filter: grayscale(0%) opacity(100%);
}

/* Modal Clientes */
.lms-cliente-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lms-cliente-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.lms-cliente-modal-box {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    padding: 40px;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lms-cliente-modal-overlay.active .lms-cliente-modal-box {
    transform: scale(1);
}

.lms-cliente-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #94a3b8;
    cursor: pointer;
}

.lms-cliente-modal-logo {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 25px;
}

.lms-cliente-modal-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

@media (max-width: 1200px) { .lms-clientes-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 992px) { .lms-clientes-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .lms-clientes-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .lms-clientes-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 1024px) {
    .cg-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .cg-grid { grid-template-columns: 1fr; }
}

/* Gallery Styles (Masonry-like grid) */
.gallery-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 15px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Span classes for masonry effect */
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.big { grid-column: span 2; grid-row: span 2; }

@media (max-width: 600px) {
    .gallery-item.wide, .gallery-item.tall, .gallery-item.big {
        grid-column: span 1;
        grid-row: span 1;
    }
    .gallery-grid {
        grid-auto-rows: 250px;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: color 0.3s;
}

.lightbox-nav:hover { color: var(--primary); }
.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }

@media (max-width: 768px) {
    .lightbox-prev { left: 0; background: rgba(0,0,0,0.3); border-radius: 0 50% 50% 0; }
    .lightbox-next { right: 0; background: rgba(0,0,0,0.3); border-radius: 50% 0 0 50%; }
}

/* Empty state premium design */
.lms-empty {
    text-align: center;
    padding: 80px 40px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.lms-empty i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.lms-empty p {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

.lms-empty a {
    margin-top: 15px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s;
}

.lms-empty a:hover {
    color: var(--navy);
}

/* Calderas Page Redesign */
.calderas-intro {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.calderas-img-wrapper {
    position: relative;
    padding: 20px;
}

.calderas-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary);
    border-right-color: transparent;
    transform: rotate(-45deg);
}

.calderas-img-wrapper img {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.calderas-intro-text {
    background: var(--navy);
    color: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,26,77,0.2);
    position: relative;
}

.calderas-intro-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.calderas-intro-text p:last-child { margin-bottom: 0; }

/* Modern Accordion */
.accordion-container {
    max-width: 1000px;
    margin: 0 auto 100px;
}

.accordion-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
}

.accordion-item.active {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.accordion-header {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: white;
    transition: background 0.3s;
}

.accordion-header:hover {
    background: #f8fafc;
}

.accordion-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.accordion-icon {
    width: 45px;
    height: 45px;
    background: var(--navy);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.accordion-item.active .accordion-icon {
    background: var(--primary);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--navy);
    font-weight: 700;
}

.accordion-arrow {
    font-size: 1.2rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-arrow {
    transform: rotate(45deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: #fbfcfe;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 30px 30px 40px 95px;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 1100px) {
    .calderas-intro {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 50px 0;
    }
    .calderas-img-wrapper {
        margin: 0 auto;
        width: fit-content;
    }
    .calderas-intro-text {
        padding: 40px;
    }
}

@media (max-width: 600px) {
    .calderas-img-wrapper img {
        width: 280px;
        height: 280px;
    }
    .accordion-header {
        padding: 20px 15px;
    }
    .accordion-body {
        padding: 20px;
    }
    .accordion-title-wrapper {
        gap: 12px;
    }
    .accordion-header h3 {
        font-size: 1rem;
    }
}

.alert {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}