/* ========================================
   Intranet Grupo Veterland - Diseño Empresarial
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --secondary: #10b981;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-medium: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ========================================
   Header & Navbar
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 2px;
    transition: var(--transition);
}

.logo-text:hover {
    color: var(--primary);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-medium);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary);
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    animation: fadeIn 0.3s ease;
    background: var(--white);
    z-index: 9999;
}

.dropdown-menu.show {
    display: block;
}

/* Nested Dropdown for SST - Desktop */
@media (min-width: 992px) {
    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu > .dropdown-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-submenu > .dropdown-item::after {
        content: "\f054";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.7rem;
        margin-left: 0.5rem;
    }

    .dropdown-submenu > .dropdown-menu {
        position: absolute;
        left: 100%;
        top: 0;
        margin-top: 0;
        margin-left: 0;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* Nested Dropdown for SST - Mobile/Tablet */
@media (max-width: 991px) {
    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu > .dropdown-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-submenu > .dropdown-item::after {
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.7rem;
        margin-left: 0.5rem;
    }

    .dropdown-submenu > .dropdown-menu {
        position: static;
        margin-left: 1rem;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        display: none;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .dropdown-submenu > .dropdown-menu.show {
        display: block;
    }

    .dropdown-submenu > .dropdown-menu .dropdown-item {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

.dropdown-item {
    cursor: pointer;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: var(--transition);
    font-weight: 500;
    color: var(--dark-medium);
}

.dropdown-item:hover {
    background: var(--primary);
    color: var(--white);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15, 23, 42, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Hero Section - Landing Page
   ======================================== */
.hero-landing {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-landing .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-right: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    color: var(--white);
    font-size: 0.7rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .text-accent {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--gray-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
    color: var(--white);
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    position: absolute;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.hero-card.main-card {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.main-card .card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.main-card h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.main-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.hero-card.card-1,
.hero-card.card-2,
.hero-card.card-3 {
    width: 100px;
    height: 100px;
    background: var(--white);
    padding: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.hero-card.card-1 {
    left: 5%;
}

.hero-card.card-2 {
    left: 40%;
}

.hero-card.card-3 {
    right: 5%;
}

.hero-card.card-1 img,
.hero-card.card-2 img,
.hero-card.card-3 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
    padding: 3rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(79, 70, 229, 0.05) 100%);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Empresas Section
   ======================================== */
.section-empresas {
    padding: 6rem 0;
    background: var(--white);
}

.empresa-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e2e8f0;
}

.empresa-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.empresa-header {
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empresa-logo {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    padding: 15px;
    box-shadow: var(--shadow-md);
}

.empresa-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.empresa-body {
    padding: 2rem;
    text-align: center;
}

.empresa-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.empresa-desc {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.empresa-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.empresa-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--gray);
    background: var(--light);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
}

.empresa-features i {
    color: var(--secondary);
    font-size: 0.75rem;
}

.btn-empresa {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-medium) 100%);
    color: var(--white);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-empresa:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   Herramientas Section
   ======================================== */
.section-herramientas {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.herramienta-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e2e8f0;
}

.herramienta-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.herramienta-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.herramienta-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.herramienta-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.herramienta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.link-btn {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    border-radius: 50px;
    transition: var(--transition);
}

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

/* ========================================
   Noticias Section
   ======================================== */
.section-noticias {
    padding: 6rem 0;
    background: var(--white);
}

.noticia-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #e2e8f0;
}

.noticia-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.noticia-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.noticia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.noticia-card:hover .noticia-img img {
    transform: scale(1.05);
}

.noticia-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noticia-body {
    padding: 1.5rem;
}

.noticia-body h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.noticia-body p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.noticia-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.noticia-link:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-medium) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.footer-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    background: var(--white);
    border-radius: 12px;
    padding: 8px;
}

.contact-card h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    word-break: break-word;
    text-align: center;
}

.contact-info .material-icons {
    font-size: 1rem;
    color: var(--primary-light);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

/* ========================================
   Modales
   ======================================== */
.modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    z-index: 10000;
}

.modal-backdrop {
    z-index: 9999;
}

.modal {
    z-index: 10000;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 1rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    color: var(--white);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border: none;
    padding: 1rem 1.5rem;
    background: var(--light);
}

.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ========================================
   Animaciones
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-landing {
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .empresa-header {
        padding: 1.5rem;
    }

    .empresa-logo {
        width: 80px;
        height: 80px;
    }

    .herramienta-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.25rem;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .dropdown-menu {
        border-radius: 8px;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .section-tag {
        font-size: 0.7rem;
    }
}

/* ========================================
   Galería de Imágenes
   ======================================== */
.gallery-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 140px 0 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.gallery-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
}

.gallery-header .container {
    position: relative;
    z-index: 1;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gallery-subtitle {
    font-size: 1.15rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.gallery-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.gallery-section {
    background: var(--light);
    min-height: 60vh;
}

.category-title {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.lb-outer {
    background: rgba(0, 0, 0, 0.9) !important;
}

.lb-image {
    border-radius: 8px;
}