/* Estilos CSS */
:root {
    --primary-color: #1565c0;
    --primary-hover: #0d47a1;
    --secondary-color: #0277bd;
    --accent-color: #03a9f4;
    --accent-light: #e1f5fe;
    --danger-color: #d32f2f;
    --danger-hover: #b71c1c;
    --text-color: #263238;
    --text-light: #546e7a;
    --light-bg: #f1f5f9;
    --light-bg-2: #e2e8f0;
    --border-color: #cfd8dc;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

body {
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    font-size: 16px;
    background-color: var(--light-bg);
}

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

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

/* Utility class for padding */
.py-5 {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* Skip link para accesibilidad */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo .material-icons {
    margin-right: 8px;
    font-size: 1.8rem;
    color: var(--danger-color);
}

.header-title {
    text-align: center;
    flex: 1;
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--danger-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top .material-icons {
    font-size: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.language-selector {
    display: flex;
    gap: 8px;
}

/* Hide mobile language selector by default (desktop) */
.language-selector-mobile {
    display: none;
}

.language-btn {
    background: none;
    border: 1px solid transparent;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
}

.language-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.language-btn:hover:not(.active) {
    background-color: var(--light-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
}

.cta-button .material-icons {
    margin-right: 6px;
    font-size: 1.1rem;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Menú de navegación */
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--danger-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .material-icons {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4ecf7 100%);
}

.hero-benefit {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-summary {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-button {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
}

.hero-button .material-icons {
    margin-right: 8px;
}

.hero-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-button.danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.hero-button.danger:hover {
    background-color: var(--danger-color);
    color: white;
}

/* Ranking Section */
.ranking {
    padding: 60px 0;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title .material-icons {
    margin-right: 12px;
    font-size: 2.5rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--danger-color);
    border-radius: 2px;
}

.ranking-list {
    list-style: none;
    counter-reset: ranking-counter;
}

.ranking-item {
    margin-bottom: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

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

.ranking-item::before {
    counter-increment: ranking-counter;
    content: counter(ranking-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--danger-color);
    background-color: transparent;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border: solid 2px rgba(21, 101, 192, 0.15);
}

.ranking-content {
    padding: 25px 25px 25px 90px;
}

.university-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.university-name .material-icons {
    margin-right: 10px;
    color: var(--secondary-color);
}

.university-description {
    margin-bottom: 16px;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.university-website {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.university-website .material-icons {
    font-size: 1rem;
    margin-right: 6px;
}

.university-website:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.careers-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.career-chip {
    background-color: rgba(3, 169, 244, 0.1);
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.career-chip .material-icons {
    font-size: 0.9rem;
    margin-right: 4px;
}

.career-chip:hover {
    background-color: rgba(3, 169, 244, 0.2);
}

.career-chip.danger {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--danger-color);
}

.career-chip.danger:hover {
    background-color: rgba(211, 47, 47, 0.2);
}

.more-info-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.more-info-btn:hover {
    color: var(--primary-color);
}

.more-info-btn::after {
    content: "expand_more";
    font-family: 'Material Icons';
    font-size: 1rem;
    transition: transform 0.3s;
}

.more-info-btn.active::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
}

.accordion-content.active {
    max-height: 500px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    margin-top: 16px;
    border: 1px solid var(--border-color);
}

.accordion-list {
    list-style: none;
}

.accordion-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    line-height: 1.5;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
}

.accordion-list li .material-icons {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--danger-color);
    font-size: 1rem;
}

/* Banners */
.banner {
    margin: 40px 0;
    text-align: center;
    background-color: #f0f4f8;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.banner img {
    max-width: 100%;
    height: auto;
    display: block;
}

.banner picture {
    display: block;
    width: 100%;
}

.banner picture img {
    width: 100%;
    height: auto;
    display: block;
}

.banner-placeholder {
    background-color: #e2e8f0;
    color: #718096;
    padding: 40px 0;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-placeholder .material-icons {
    margin-right: 8px;
    font-size: 1.5rem;
}

.banner-a {
    height: auto;
    margin-top: 0;
}

.banner-b {
    height: auto;
}

/* Metodología Section */
.metodologia {
    padding: 60px 0;
    background-color: var(--light-bg-2);
}

.metodologia-content {
    max-width: 900px;
    margin: 0 auto;
}

.metodologia-formula {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.formula-step {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
}

.formula-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.formula-step .material-icons {
    color: var(--danger-color);
    margin-right: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.formula-step strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

/* Conclusiones Section */
.conclusiones {
    padding: 60px 0;
}

.conclusiones-content {
    max-width: 900px;
    margin: 0 auto;
}

.demand-list {
    list-style: none;
    margin-top: 30px;
}

.demand-list li {
    margin-bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
}

.demand-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.demand-list li .material-icons {
    background-color: var(--danger-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

.demand-list li.danger .material-icons {
    background-color: var(--danger-color);
}

.demand-list li strong {
    color: var(--primary-color);
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

/* Fuentes Section */
.fuentes {
    padding: 60px 0;
    background-color: var(--light-bg-2);
}

.fuentes-list {
    list-style: none;
    max-width: 900px;
    margin: 30px auto 0;
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.fuentes-list li {
    margin-bottom: 16px;
    padding-left: 30px;
    position: relative;
    line-height: 1.5;
    display: flex;
    align-items: center;
    border-bottom: solid 1px var(--light-bg-2);
    padding-bottom: 5px;
}

.fuentes-list li:last-child {
    margin-bottom: 0;
}

.fuentes-list li .material-icons {
    position: absolute;
    left: 0;
    color: var(--danger-color);
    font-size: 1.2rem;
}

.fuentes-list a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.fuentes-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-cta {
    max-width: 1000px;
    margin-bottom: 40px;
}

.footer-cta h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-cta h2 .material-icons {
    margin-right: 12px;
    font-size: 2.2rem;
}

.footer-cta p {
    margin-bottom: 24px;
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-cta-button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-cta-button .material-icons {
    margin-right: 10px;
    font-size: 1.3rem;
    color: var(--danger-color);
}

.footer-cta-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.footer-legal {
    margin-top: 30px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-legal-links a .material-icons {
    font-size: 1rem;
    margin-right: 4px;
}

.footer-legal-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .nav-menu ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }

    .logo {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
    }

    .header-title {
        order: -1;
    }

    h1 {
        font-size: 1.25rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .nav-menu {
        display: none;
        width: 100%;
        margin: 10px 0 0;
        order: 3;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
        background-color: var(--light-bg);
        padding: 15px;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
    }

    .menu-toggle {
        display: block;
        order: 2;
    }

    .hero-benefit {
        font-size: 1.5rem;
    }

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

    .ranking-content {
        padding-left: 70px;
    }

    .ranking-item::before {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .university-name {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.875rem;
        line-height: 1.25;
    }

    .section-title .material-icons {
        display: none;
    }

    .footer-cta h2 {
        font-size: 1.5rem;
    }

    .footer-cta-button {
        font-size: 1rem;
        padding: 12px 24px;
    }
    .footer-cta h2 .material-icons, .cta-button .material-icons {
        display: none;
    }

    /* Hide desktop language selector on mobile */
    .header-actions .language-selector {
        display: none;
    }

    /* Show mobile language selector in dropdown */
    .language-selector-mobile {
        display: flex;
        gap: 8px;
        justify-content: center;
        padding-top: 15px;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .header-actions .cta-button {
        text-align: center;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-button {
        width: 100%;
        max-width: 300px;
    }

    .demand-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .demand-list li .material-icons {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .fuentes-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .fuentes-list li .material-icons {
        position: static;
        margin-bottom: 6px;
    }

    .fuentes-list li {
        padding-left: 0;
    }
}

/* =========================
   PATCH: Estilos solo internos
   Se aplican cuando <body class="interna">
   ========================= */

/* Hero y títulos internos */
body.interna .hero {
  padding: 60px 0; /* o 40px en mobile, ver media query */
  text-align: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4ecf7 100%);
}

body.interna .section-title {
  font-size: 2.25rem;
  margin-bottom: 20px; /* en home es 40px */
  text-align: center;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.interna .section-title .material-icons {
  margin-right: 12px;
  font-size: 2.5rem;
}

body.interna .hero-summary {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Bloques “About” internos */
body.interna .about-content { padding: 40px 0; }

body.interna .about-intro {
  text-align: center;
  margin-bottom: 40px;
}

body.interna .about-intro h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

body.interna .about-intro p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
}

body.interna .about-section {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

body.interna .about-section h3 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

body.interna .about-section h3 .material-icons {
  margin-right: 12px;
  color: var(--danger-color);
}

body.interna .about-section p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
}

body.interna .feature-list { list-style: none; margin-top: 20px; }
body.interna .feature-list li {
  display: flex; align-items: flex-start; margin-bottom: 15px; font-size: 1.1rem;
}
body.interna .feature-list li .material-icons {
  color: var(--danger-color); margin-right: 12px; flex-shrink: 0;
}

/* CTA intermedio interno */
body.interna .cta-section {
  text-align: center;
  margin: 20px 0 30px;
  padding: 40px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4ecf7 100%);
  border-radius: var(--border-radius);
}
body.interna .cta-section p {
  font-size: 1.2rem; color: var(--text-light); max-width: 800px; margin: 20px auto 0;
}
body.interna .cta-button.danger { background-color: var(--danger-color); }
body.interna .cta-button.danger:hover { background-color: var(--danger-hover); }

/* Utilidad (aseguramos que esté fuera de media queries) */
.text-danger { color: var(--danger-hover) !important; }

/* ======= Responsive solo para páginas internas ======= */
@media (max-width: 768px) {
  body.interna .hero { padding: 40px 0; }
  body.interna .section-title { font-size: 1.875rem; }
  body.interna .section-title .material-icons { font-size: 2rem; }
  body.interna .about-intro h2 { font-size: 2rem; }
  body.interna .about-section h3 { font-size: 1.5rem; }
  body.interna .cta-section { margin: 10px 0 20px; padding: 30px 20px; }
  body.interna .footer-cta h2 { font-size: 1.5rem; }
  body.interna .footer-cta-button { font-size: 1rem; padding: 12px 24px; }
}

@media (max-width: 480px) {
  body.interna .hero { padding: 30px 0; }
  body.interna .section-title { font-size: 1.5rem; line-height: 1.2; }
  body.interna .section-title .material-icons { display: none; }
  body.interna .about-section { padding: 20px; }
  body.interna .cta-section { padding: 25px 15px; }
}

/* Blog Modal Styles */
.blog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.blog-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.blog-modal-content {
    background-color: #f8fafc;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.blog-modal-overlay.active .blog-modal-content {
    transform: translateY(0);
}

.blog-modal-header {
    background-color: white;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-modal-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.close-modal-btn:hover {
    color: var(--danger-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.blog-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

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

.blog-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
}

.blog-card-title a:hover {
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-meta .material-icons {
    font-size: 0.9rem;
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start;
}

.blog-read-more:hover {
    text-decoration: underline;
}

/* Blog post content styling */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.blog-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content strong {
    font-weight: 600;
    color: var(--text-color);
}

/* Contact Form Styles */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group .required {
    color: var(--danger-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.form-group input.field-error,
.form-group select.field-error,
.form-group textarea.field-error {
    border-color: var(--danger-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#form-messages {
    margin: 20px 0;
}

.form-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 4px;
    font-weight: 500;
}

.form-message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message--error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.form-message .material-icons {
    font-size: 24px;
}

.contact-form .cta-button {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.contact-form .cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.recaptcha-info {
    margin-top: 15px;
    text-align: center;
    color: var(--text-light);
}

.recaptcha-info a {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .blog-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* Footer Moderno Redesign */
.footer-modern {
    background-color: var(--primary-color); /* Azul primario */
    color: #fff;
    padding: 60px 0 30px;
    font-family: 'Roboto', sans-serif;
}

.footer-modern a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
}

.footer-modern a:hover {
    color: var(--accent-light);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    flex: 1;
}

@media (min-width: 1280px) {
    .footer-first-col {
        min-width: 380px;
    }
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: #fff;
    line-height: 1.2;
}

.footer-title strong {
    font-weight: 700;
}

/* Columna Izquierda - CTA Blog */
.footer-description {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 500px;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    color: var(--primary-color) !important;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 280px;
    max-width: 100%;
}

.footer-cta-btn:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.footer-cta-btn .material-icons {
    color: var(--primary-color);
}

.footer-cta-btn:hover .material-icons {
    color: var(--primary-color);
}

/* Columna Derecha - Enlaces/Keywords */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 30px;
}

.footer-link-item {
    display: flex;
    align-items: center;
}

.footer-link-item .material-icons {
    font-size: 18px;
    margin-right: 8px;
    color: var(--accent-color);
}

/* Bottom Section */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #b0bec5;
}

.footer-legal-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-legal-links a::before {
    content: ''; /* Circle bullet like in image */
    margin-right: 5px;
    font-size: 10px;
    color: var(--accent-color);
}

.footer-legal-links a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-title {
        font-size: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links {
        justify-content: center;
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show hamburger on mobile */
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }

    .menu-toggle .material-icons {
        font-size: 28px;
        color: var(--primary-color);
    }

    .nav-menu {
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
        flex-direction: column;
        display: none; /* Hidden by default on mobile */
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex; /* Show when active */
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        text-align: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .header-content {
        justify-content: space-between;
    }

    /* Hide CTA button text on mobile if needed, or adjust layout */
    .cta-button span:not(.material-icons) {
        display: none;
    }

    .cta-button {
        padding: 8px;
        min-width: auto;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none; /* Hide hamburger on desktop */
    }

    .nav-menu {
        display: block !important; /* Always show nav on desktop */
        position: static;
        box-shadow: none;
        padding: 0;
        background: transparent;
    }

    .nav-menu ul {
        display: flex;
        gap: 30px;
        align-items: center;
        list-style: none;
        margin: 0;
    }
}
