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

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --primary-orange: #00A0DD;
    --white: #FFFFFF;
    --primary-blue: #37A4FD;
    --dark-blue: #0C4C91;
    --light-gray: #f8f9fa;
    --text-gray: #333;
    --border-gray: #ddd;
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--white);
    /* Deshabilitar selección de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Deshabilitar arrastrar elementos */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Ocultar contenido hasta que cargue */
body.loading header,
body.loading footer,
body.loading main {
    opacity: 0;
    visibility: hidden;
}

body.loaded header,
body.loaded footer,
body.loaded main {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out;
}

/* LOADER STYLES */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    text-align: center;
    color: var(--primary-blue);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 160, 221, 0.3);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader-spinner p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--primary-blue);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* TOP BAR */
.top-bar {
    background-color: #F26133;
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.quick-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quick-btn {
    text-decoration: none;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.quick-btn.portal {
    background-color: #FFFFFF;
    color: var(--text-gray);
}

.quick-btn.turnos {
    background-color: #0C4C91;
}

.quick-btn.whatsapp {
    background-color: #0C4C91;
}

.quick-btn.urgencias {
    background-color: #0C4C91;
}

.quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

/* HEADER */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    top: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

header.scrolled .logo-img {
    height: 40px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo-img {
    height: 50px;
    width: auto;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00A0DD;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #00A0DD;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Estilos específicos para el enlace del logo sin efectos */
.logo .nav-link {
    padding: 0;
    transition: none;
}

.logo .nav-link::after {
    display: none;
}

.logo .nav-link:hover {
    color: inherit;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
    position: relative;
    z-index: 1002;
    width: 30px;
    height: 24px;
    justify-content: center;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* MAIN CONTENT */
main {
    margin-top: 120px;
}

.page {
    display: none;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
}

/* HERO SECTION */
.hero {
    position: relative;
    color: #0C4C90;
    padding: 2rem 0;
    text-align: left;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgb(214, 214, 214, 0.8) 40%, rgba(214, 214, 214, 0.8) 0%, rgba(0, 160, 221, 0.3) 70%, rgba(0, 160, 221, 0.3) 100%);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--white);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 5;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.slide-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide-content.active {
    display: block;
    opacity: 1;
}

.slide-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.slide-logo img {
    transition: all 0.3s ease;
}

.slide-3 div {
    text-align: left !important;
}

.hero-content {
    max-width: 600px;
    margin: 0;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    line-height: 1.1;
    margin-left: 0;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #1e4d7a;
    color: var(--white);
    border-radius: 3px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #0080B8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

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

/* INTERDISCIPLINARY SECTION */
.interdisciplinary-section {
    background-color: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-gray);
    position: relative;
    overflow: hidden;
}

.interdisciplinary-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 160, 221, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.interdisciplinary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.interdisciplinary-text {
    flex: 1;
}

.interdisciplinary-text h2 {
    color: var(--text-gray);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.interdisciplinary-highlight {
    position: relative;
    color: #00A0DD;
    font-weight: 700;
    font-size: 1.1em;
    display: inline-block;
    background: linear-gradient(90deg, #00A0DD, #37A4FD, #0C4C91, #00A0DD);
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: colorShift 3s ease-in-out infinite;
    text-shadow: 0 2px 4px rgba(0, 160, 221, 0.2);
}

.interdisciplinary-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 160, 221, 0.1), rgba(55, 164, 253, 0.1), rgba(12, 76, 145, 0.1));
    border-radius: 8px;
    padding: 4px 8px;
    margin: -4px -8px;
    z-index: -1;
    opacity: 0;
    animation: backgroundPulse 3s ease-in-out infinite;
}

.interdisciplinary-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00A0DD, #37A4FD, #0C4C91);
    border-radius: 1px;
    transform: scaleX(0);
    animation: underlineGrow 3s ease-in-out infinite;
}

@keyframes colorShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 0;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes underlineGrow {

    0%,
    100% {
        transform: scaleX(0);
    }

    50% {
        transform: scaleX(1);
    }
}

.interdisciplinary-highlight:hover {
    animation-play-state: paused;
    color: #0C4C91;
    -webkit-text-fill-color: #0C4C91;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.interdisciplinary-button {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 1s;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.interdisciplinary-button .btn {
    position: relative;
    overflow: hidden;
}

.interdisciplinary-button .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.interdisciplinary-button .btn:hover::before {
    left: 100%;
}

@media (max-width: 768px) {

    #contacto .page-header-slide:nth-child(1) {
        background-image: url("imagenes/carruseles/contacto/movil_foto1.jpg") !important;
    }
    #contacto .page-header-slide:nth-child(2) {
        background-image: url("imagenes/carruseles/contacto/movil_foto2.jpg") !important;
    }
    #contacto .page-header-slide:nth-child(3) {
        background-image: url("imagenes/carruseles/contacto/movil_foto49.jpg") !important;
    }


    #institucional .page-header-slide:nth-child(1) {
        background-image: url("imagenes/carruseles/institucional/movil_foto29.jpg") !important;
    }
    #institucional .page-header-slide:nth-child(2) {
        background-image: url("imagenes/carruseles/institucional/movil_foto27.jpg") !important;
    }
    #institucional .page-header-slide:nth-child(3) {
        background-image: url("imagenes/carruseles/institucional/movil_foto49.jpg") !important;
    }


    #novedades .page-header-slide:nth-child(1) {
        background-image: url("imagenes/carruseles/novedades/movil_foto1.jpg") !important;
    }
    #novedades .page-header-slide:nth-child(2) {
        background-image: url("imagenes/carruseles/novedades/movil_foto2.jpg") !important;
    }
    #novedades .page-header-slide:nth-child(3) {
        background-image: url("imagenes/carruseles/novedades/movil_foto3.jpg") !important;
    }


    #servicios .page-header-slide:nth-child(1) {
        background-image: url("imagenes/carruseles/servicios/movil_foto1.jpg") !important;
    }
    #servicios .page-header-slide:nth-child(2) {
        background-image: url("imagenes/carruseles/servicios/movil_foto2.jpg") !important;
    }
    #servicios .page-header-slide:nth-child(3) {
        background-image: url("imagenes/carruseles/servicios/movil_foto3.jpg") !important;
    }


    #trabaja .page-header-slide:nth-child(1) {
        background-image: url("imagenes/carruseles/trabaja/movil_foto1.jpg") !important;
    }
    #trabaja .page-header-slide:nth-child(2) {
        background-image: url("imagenes/carruseles/trabaja/movil_foto2.jpg") !important;
    }
    #trabaja .page-header-slide:nth-child(3) {
        background-image: url("imagenes/carruseles/trabaja/movil_foto3.jpg") !important;
    }






    
    
    .interdisciplinary-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .interdisciplinary-text h2 {
        font-size: 1.3rem;
    }

    .interdisciplinary-highlight {
        font-size: 1.05em;
    }

    .interdisciplinary-button {
        animation: fadeInUp 1s ease-out forwards;
        animation-delay: 1.2s;
        transform: translateY(20px);
    }
}

/* LOGOS GRID */
.logos-carousel-section {
    background-color: #FFFFFF;
    padding: 3rem 0;
}



.logos-grid .logo-row {
    display: contents;
}

/* Grid principal para logos */
.logos-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

/* Primera fila - 5 logos */
.logo-row-1 {
    display: flex;
    justify-content: center;
    gap: 5rem;
    width: 100%;
}

/* Segunda fila - 6 logos centrados como grupo */
.logo-row-2 {
    display: flex;
    justify-content: center;
    gap: 4rem;
    width: 100%;
}

.logo-item {
    width: 180px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 1rem;
}

.logo-item:hover {
    transform: scale(1.05);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(10%);
    transition: filter 0.3s ease;
    transform: scale(1.1);
}

.logo-item img[src="imagenes/logos/logo-sanos.png"] {
    transform: scale(1);
}

.logo-item img[src="imagenes/logos/loco-delprado.png"],
.logo-item img[src="imagenes/logos/logo-centro-sanos.png"],
.logo-item img[src="imagenes/logos/logo-lacumbre.png"],
.logo-item img[src="imagenes/logos/logo-sanos-lafalda.png"],
.logo-item img[src="imagenes/logos/logo3.png"] {
    transform: scale(1.35);
}

.logo-item img[src="imagenes/logos/logo-cruz.png"],
.logo-item img[src="imagenes/logos/logo-nefrologia.png"] {
    transform: scale(1.45);
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* Logos clickeables */
.logo-item.clickable-logo {
    cursor: pointer;
    position: relative;
}

.logo-item.clickable-logo:hover {
    transform: scale(1.08);
}

@media (max-width: 1024px) {
    .logos-grid {
        gap: 3.5rem 3rem;
        grid-template-columns: repeat(5, 1fr);
        max-width: 1200px;
    }

    .logo-item {
        width: 140px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    .logos-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 100%;
        align-items: center;
    }

    .logo-row-1,
    .logo-row-2 {
        display: contents;
    }

    .logo-item {
        width: 100%;
        height: 80px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-item img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
    }

    .logos-carousel-section {
        padding: 2rem 0;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 0 10px;
    }

    .logo-item {
        width: 100%;
        height: 70px;
    }

    .logo-item img {
        max-width: 85%;
        max-height: 85%;
        object-fit: contain;
    }

    .container {
        padding: 0 15px;
    }

    .top-bar .container {
        padding: 0 10px;
    }

    .partner-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
}

/* CHARACTERISTICS SECTION */
.characteristics-section {
    background-color: #E8F4FD;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-gray);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.characteristic-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.characteristic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 160, 221, 0.2);
}

.characteristic-card .card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 0 0 15px 15px;
}

.characteristic-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.characteristic-card:hover .card-image img {
    transform: scale(1.1);
}

.characteristic-card .card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.characteristic-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.characteristic-card:hover h3 {
    color: var(--primary-orange);
}

.characteristic-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .characteristics-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 400px;
        padding: 0 15px;
    }

    .characteristics-section {
        padding: 2rem 0;
    }

    .characteristic-card {
        min-height: 350px;
    }

    .characteristic-card .card-image {
        height: 180px;
    }

    .characteristic-card .card-content {
        padding: 1.5rem;
    }

    .characteristic-card h3 {
        font-size: 1.3rem;
    }

    .characteristic-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .characteristic-card {
        min-height: 320px;
        padding: 0 10px;
    }

    .characteristic-card .card-image {
        height: 160px;
    }

    .characteristic-card .card-content {
        padding: 1.2rem;
    }

    .characteristic-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .characteristic-card p {
        font-size: 0.9rem;
    }
}

/* FEATURES */
.features {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

/* ESTILOS PARA FEATURES CON ANIMACIÓN */
.service-features {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-orange), #F26133);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 97, 51, 0.3);
}

.feature-tag i {
    font-size: 0.8rem;
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 97, 51, 0.4);
}

.service-card:hover .feature-tag {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3));
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* NUEVA SECCIÓN DE TARJETAS */
.new-cards-section {
    background-color: #E8F4FD;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-gray);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 20px;
}

.section-header h2 {
    color: var(--text-gray);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease-out forwards;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease-out forwards;
    animation-delay: 0.3s;
}

.new-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-card {
    background-color: #EFEFEF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(50px);
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 160, 221, 0.2);
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 0 0 15px 15px;
}

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

.highlight-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    color: #0F1017;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.highlight-card:hover .card-content h3 {
    color: var(--primary-orange);
}

.card-content p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive para nueva sección */
@media (max-width: 1024px) {
    .new-cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        padding: 0 15px;
    }

    .highlight-card {
        min-height: 400px;
    }

    .card-image {
        height: 180px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .new-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    .new-cards-section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .highlight-card {
        min-height: 350px;
    }

    .card-image {
        height: 160px;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-content h3 {
        font-size: 1.3rem;
    }

    .card-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {

    .new-cards-grid {
        padding: 0 10px;
    }

    .highlight-card {
        min-height: 320px;
    }

    .card-image {
        height: 140px;
    }

    .card-content {
        padding: 1.2rem;
    }

    .card-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

/* SERVICES OVERVIEW */
.services-overview {
    padding: 4rem 0;
    background-color: var(--white);
}

.services-with-image {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-image {
    flex-shrink: 0;
    width: 300px;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.services-content {
    flex: 1;
}

.services-content h2 {
    color: var(--text-gray);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--primary-orange);
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

/* NAVEGACIÓN DE SERVICIOS */
.services-navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.service-nav-btn {
    background-color: #F26133 !important;
    color: var(--white) !important;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(242, 97, 51, 0.3);
}

.services-navigation .service-nav-btn:hover {
    background-color: #E8541F !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 97, 51, 0.4);
}

.services-navigation .service-nav-btn:active {
    transform: translateY(0);
}

.services-navigation .service-nav-btn i {
    font-size: 1rem;
    color: var(--white) !important;
}

.services-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.services-column {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.service-simple-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.3;
    padding: 0.2rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-simple-item:hover {
    color: #333;
    transform: translateX(3px);
}

.service-simple-item i {
    color: #00A0DD;
    font-size: 0.6rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
    transition: all 0.3s ease;
}

.service-simple-item:hover i {
    color: #333;
    transform: scale(1.1);
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #888;
    line-height: 1.4;
    opacity: 0.8;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    color: #000000;
    opacity: 1;
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.05);
}

.service-item i {
    color: #00A0DD;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-item:hover i {
    color: #000000;
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .services-with-image {
        gap: 2rem;
    }

    .services-image {
        width: 250px;
        height: 200px;
    }

    .services-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-with-image {
        flex-direction: column;
        gap: 2rem;
    }

    .services-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .services-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-content h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .services-overview {
        padding: 3rem 0;
    }

    .service-simple-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .service-simple-item {
        font-size: 0.75rem;
        gap: 0.6rem;
    }

    .services-overview {
        padding: 2rem 0;
    }

    .services-content h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* PAGE HEADER MEJORADO */
.page-header {
    text-align: center;
    padding: 4rem 0;
    border-bottom: 3px solid var(--primary-orange);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Carrusel de fondo para headers */
.page-header-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
}

.page-header-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    width: 100%;
    height: 100%;
}

/* SECCIÓN DE NAVEGACIÓN FUERA DEL HEADER */
.services-navigation-section {
    background-color: var(--white);
    padding: 2rem 0;
    margin-bottom: 2rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.services-navigation-section .services-navigation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* GALERÍA INSTITUCIONAL */
.institutional-gallery-section {
    background-color: #F26133;
    padding: 4rem 0;
    margin: 4rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.gallery-preview {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 160, 221, 0.2);
}

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

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

.gallery-cta {
    text-align: center;
}

.btn-gallery {
    background-color: white;
    color: #F26133;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.btn-gallery:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.9);
}

.btn-gallery i {
    font-size: 1.2rem;
}

/* PÁGINA DE GALERÍA COMPLETA */
.gallery-page-header {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    color: white;
    margin-bottom: 4rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.gallery-page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.gallery-page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-full-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: white;
}

.gallery-full-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 160, 221, 0.2);
}

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

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

.gallery-full-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-full-item:hover .overlay {
    opacity: 1;
}

.gallery-full-item .overlay-content {
    color: white;
    text-align: left;
}

.gallery-full-item .overlay-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-full-item .overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* MODAL DE IMAGEN */
.image-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.image-modal-prev {
    left: 30px;
}

.image-modal-next {
    right: 30px;
}

.image-modal-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    text-align: center;
}

.image-modal-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.image-modal-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Responsive para galería */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .gallery-full-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .institutional-gallery-section {
        padding: 3rem 0;
        margin: 2rem 0;
    }

    .gallery-preview {
        padding: 0 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .gallery-full-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-page-header {
        padding: 3rem 0;
        margin-bottom: 3rem;
    }

    .gallery-page-header h1 {
        font-size: 2.2rem;
    }

    .gallery-page-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .btn-gallery {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .image-modal-content {
        padding: 10px;
        width: 95%;
    }

    .image-modal-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .image-modal-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .image-modal-prev {
        left: 20px;
    }

    .image-modal-next {
        right: 20px;
    }

    .image-modal-info {
        bottom: 20px;
        padding: 0.8rem 1.5rem;
        width: 90%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .gallery-preview {
        padding: 0 10px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .gallery-page-header h1 {
        font-size: 1.8rem;
    }

    .gallery-page-header p {
        font-size: 1rem;
    }

    .btn-gallery {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .image-modal img {
        max-height: 70vh;
    }

    .image-modal-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 25px;
    }

    .image-modal-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .image-modal-prev {
        left: 15px;
    }

    .image-modal-next {
        right: 15px;
    }

    .image-modal-info {
        bottom: 15px;
        padding: 0.6rem 1rem;
    }

    .image-modal-info h3 {
        font-size: 1rem;
    }

    .image-modal-info p {
        font-size: 0.8rem;
    }
}

.page-header-slide.active {
    opacity: 1;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 160, 221, 0.5), rgba(0, 160, 221, 0.5));
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 3;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.animated-header .header-icon {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
    animation: headerIconAppear 1s ease-out forwards;
}

.page-header h1 {
    font-size: 3.2rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease-out forwards;
    animation-delay: 0.3s;
}

.page-header p {
    font-size: 1.4rem;
    color: white;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease-out forwards;
    animation-delay: 0.5s;
}

.header-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.7));
    margin: 2rem auto 0;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    animation: underlineExpand 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

@keyframes headerIconAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes underlineExpand {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* ESTADÍSTICAS MEJORADAS */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa, #e8f4fd);
    padding: 4rem 0;
    margin-top: 4rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out forwards;
}

.stat-item:nth-child(1) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.4s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.6s;
}

.stat-item:nth-child(4) {
    animation-delay: 0.8s;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 160, 221, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: block;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 0.6s ease-out forwards;
    animation-delay: 1.2s;
}

/* CONTENT GRID */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.content-text h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-text h2:first-child {
    margin-top: 0;
}

.content-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.placeholder-image {
    background-color: var(--light-gray);
    border: 2px dashed var(--border-gray);
    border-radius: 10px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-style: italic;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* NUEVAS TARJETAS DE SERVICIOS */
.new-service-card {
    background-color: #EFEFEF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(50px);
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.new-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 160, 221, 0.2);
}

.service-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 0 0 15px 15px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.new-service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFromBottom 1s ease-out forwards;
    animation-delay: 0.3s;
}

.new-service-card:hover .service-content h3 {
    color: var(--primary-orange);
}

.service-content p {
    color: var(--text-gray);
    font-size: 1.4rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFromBottom 1s ease-out forwards;
    animation-delay: 0.6s;
}

.service-card {
    background-color: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    padding: 4rem 3.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(100px);
    min-height: 750px;
}

.service-card:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 160, 221, 0.3);
}

.service-card h3 {
    color: var(--primary-orange);
    margin-bottom: 2.5rem;
    font-size: 3.5rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.8s ease;
}

.service-card:hover h3 {
    color: var(--white);
}

.service-card p {
    font-size: 2rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(80px);
    margin-bottom: 2.5rem;
    transition: all 0.8s ease;
}

/* Animación para textos que suben desde abajo */
@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clase para elementos que se animan al hacer scroll */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.animate .service-icon {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: iconBounceIn 1s ease-out 0.3s both;
}

.scroll-animate.animate h3 {
    opacity: 1;
    transform: translateY(0);
    animation: slideUpFromBottom 1s ease-out 0.6s both;
}

.scroll-animate.animate p {
    opacity: 1;
    transform: translateY(0);
    animation: slideUpFromBottom 1s ease-out 0.9s both;
}

.scroll-animate.animate .service-features {
    opacity: 1;
    transform: translateY(0);
    animation: slideUpFromBottom 1s ease-out 1.2s both;
}

@keyframes iconBounceIn {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.3);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1.1);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideUpFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* JOB TABS */
.job-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid #eee;
}

.job-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.job-tab:hover {
    color: var(--primary-blue);
}

.job-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-orange);
}

/*TAB CONTENT*/
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* JOBS CONTENT */
.jobs-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* FILE UPLOAD */
.file-upload {
    position: relative;
    margin: 1rem 0;
}

.file-upload input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-label {
    display: block;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
}

.file-label:hover {
    background-color: #e9ecef;
    border-color: var(--primary-blue);
}

.file-label i {
    margin-right: 0.5rem;
}

/* CV FORM MESSAGES */
.cv-form-message {
    border-radius: 5px;
    font-weight: 500;
}

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

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

/* FORM SUBMIT BUTTON DISABLED STATE */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* FILE UPLOAD */
.file-upload {
    position: relative;
    margin: 1rem 0;
}

.file-upload input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 15px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    border-radius: 0;
    color: #666;
    font-size: 1rem;
}

.file-label:hover {
    background-color: #e8e8e8;
    border-color: var(--primary-blue);
}

.file-label i {
    color: var(--primary-orange);
}

/* OFERTAS LABORALES */
.ofertas-container {
    max-width: 1000px;
    margin: 0 auto;
}

.ofertas-container h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.ofertas-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* NUEVAS TARJETAS DE OFERTAS */
.oferta-card-nueva {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.oferta-card-nueva:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 160, 221, 0.15);
    border-color: var(--primary-blue);
}

.oferta-tipo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #00A0DD;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oferta-contenido {
    padding-right: 1rem;
}

.oferta-contenido h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.oferta-ubicacion {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.oferta-descripcion-breve {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 1.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.oferta-meta {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.oferta-autor {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.autor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
}

.autor-info {
    display: flex;
    flex-direction: column;
}

.autor-nombre {
    color: #333;
    font-size: 0.85rem;
    font-weight: 500;
}

.oferta-fecha {
    color: #888;
    font-size: 0.75rem;
}

/* MODAL DE DETALLE DE OFERTA */
.oferta-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.oferta-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
}

.oferta-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.oferta-modal-close:hover {
    color: #000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* DETALLE DE OFERTA */
.oferta-detalle-header {
    background: linear-gradient(135deg, #00A0DD, #37A4FD);
    color: white;
    padding: 2rem;
    text-align: center;
}

.oferta-detalle-header h1 {
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.oferta-detalle-header .fecha {
    font-size: 1rem;
    opacity: 0.9;
}

.oferta-detalle-contenido {
    padding: 2rem;
}

.oferta-detalle-seccion {
    margin-bottom: 2rem;
}

.oferta-detalle-seccion h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.oferta-detalle-seccion p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.oferta-detalle-seccion ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.oferta-detalle-seccion li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.oferta-detalle-acciones {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-postularse {
    background: var(--primary-blue);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-postularse:hover {
    background: #0080B8;
    transform: translateY(-2px);
}

.btn-volver {
    background: transparent;
    color: var(--primary-blue);
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* OFERTAS LEGACY */
.oferta-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.oferta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 160, 221, 0.2);
    border-color: var(--primary-blue);
}

.oferta-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.oferta-header h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin: 0;
    flex: 1;
}

.oferta-tipo {
    background: var(--primary-orange);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 1rem;
}

.oferta-info {
    margin-bottom: 1.5rem;
}

.oferta-info p {
    margin: 0.5rem 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.oferta-info strong {
    color: var(--primary-blue);
}

.oferta-descripcion {
    margin-bottom: 1.5rem;
}

.oferta-descripcion p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

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

.no-ofertas {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
}

.no-ofertas i {
    font-size: 4rem;
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.no-ofertas h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .job-tabs {
        flex-direction: column;
    }

    .job-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        padding: 1rem;
    }

    .job-tab.active {
        border-left-color: var(--primary-orange);
        border-bottom-color: transparent;
    }

    .ofertas-grid {
        grid-template-columns: 1fr;
    }

    .oferta-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .oferta-tipo {
        margin-left: 0;
        align-self: flex-start;
    }
}

.job-info h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.job-info ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.job-info li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.job-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-tag {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* CONTACT LAYOUT */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.main-contact-form {
    background-color: var(--white);
    padding: 0;
}

.main-contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.main-contact-form input,
.main-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-sizing: border-box;
}

.main-contact-form input:focus,
.main-contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--white);
}

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

.btn-enviar {
    background-color: #1e4d7a;
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    min-width: 80px;
    margin-bottom: 3rem;
}

.btn-enviar:hover {
    background-color: #0f3a5e;
}

.form-message {
    margin-top: 1rem;
    padding: 12px 15px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
}

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

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

/* CONTACT SIDEBAR */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-icons {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.contact-icon-group {
    display: flex;
    gap: 10px;
}

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

.contact-icon.blue {
    background-color: #7dcef0;
}

.contact-icon.orange {
    background-color: #f26133;
}

.contact-info-box {
    background-color: #f0f0f0;
    padding: 2rem;
    border-radius: 8px;
}

.contact-info-box p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #333;
    font-size: 0.9rem;
}

.contact-detail-item i {
    width: 16px;
    color: #666;
    font-size: 0.9rem;
}

.contact-detail-item span {
    color: #333;
}

/* FORMS */
.contact-form {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.contact-form h3 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #f8f8f8;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.contact-form button {
    margin-top: 1rem;
    align-self: flex-start;
}

/* SEPARATOR BAR */
.separator-bar {
    background-color: #00A0DD;
    height: 8px;
    width: 100%;
}

/* INSTITUTIONAL PAGE */
#institucional {
    min-height: 70vh;
    padding: 4rem 0;
    background-color: #E8F4FD;
}

.institutional-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
    background-color: #cbe3f4;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    margin-top: 2rem;
}

.institutional-content p {
    font-size: 1.1rem;
    color: #777;
    text-align: justify;
    margin: 0;
    font-weight: 400;
}

@media (max-width: 768px) {
    #institucional {
        padding: 3rem 0;
        min-height: 60vh;
    }

    .institutional-content {
        padding: 2rem;
        margin: 1rem;
        margin-top: 1rem;
    }

    .institutional-content p {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    #institucional {
        padding: 2rem 0;
        min-height: 50vh;
    }

    .institutional-content {
        padding: 1.5rem;
        margin: 0.5rem;
        margin-top: 1rem;
    }

    .institutional-content p {
        font-size: 0.95rem;
    }
}

/* EXPANDED INSTITUTIONAL SECTION */
.institutional-expanded {
    margin-top: 4rem;
    padding: 0 2rem;
}

.institutional-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.institutional-text-section h2 {
    color: var(--dark-blue);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.institutional-text-section p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.institutional-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    height: 300px;
    min-height: 300px;
}

.institutional-image:hover {
    transform: translateY(-5px);
}

.institutional-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.aerial-view {
    grid-column: 1;
    grid-row: 2;
}

.institutional-text-additional {
    grid-column: 2;
    grid-row: 2;
    padding-left: 1rem;
}

.institutional-text-additional p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.institutional-text-additional strong {
    color: var(--primary-blue);
    font-weight: 700;
}

@media (max-width: 768px) {
    .institutional-expanded {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .institutional-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .institutional-text-section h2 {
        font-size: 1.5rem;
    }

    .institutional-image {
        height: 250px;
        min-height: 250px;
    }

    .aerial-view {
        grid-column: 1;
        grid-row: auto;
    }

    .institutional-text-additional {
        grid-column: 1;
        grid-row: auto;
        padding-left: 0;
    }

    .institutional-text-additional p {
        text-align: left;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .institutional-expanded {
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }

    .institutional-grid {
        gap: 1.5rem;
    }

    .institutional-text-section h2 {
        font-size: 1.3rem;
    }

    .institutional-image {
        height: 200px;
        min-height: 200px;
    }
}

/* ZOCALO SECTION */
.zocalo-section {
    background-color: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.zocalo-image {
    width: 80%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .zocalo-image {
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .zocalo-image {
        max-height: 100px;
    }
}

/* SERVICES EXPANSION SECTION */
.services-expansion-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
    margin-top: 2rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.expansion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    align-items: start;
}

.expansion-text {
    padding-right: 2rem;
}

.expansion-subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.expansion-text h2 {
    color: var(--text-gray);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.expansion-additional {
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

.expansion-additional p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.services-expansion-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-expansion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

.service-expansion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 160, 221, 0.15);
    border-left-color: var(--primary-orange);
}

.service-expansion-item i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.service-expansion-item:hover i {
    color: var(--primary-orange);
}

.service-expansion-item span {
    color: var(--text-gray);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .expansion-grid {
        gap: 2rem;
    }

    .expansion-text {
        padding-right: 1rem;
    }

    .expansion-additional {
        padding-left: 1rem;
    }

    .services-expansion-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-expansion-section {
        padding: 3rem 0;
    }

    .expansion-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .expansion-text {
        padding-right: 0;
    }

    .expansion-text h2 {
        font-size: 1.5rem;
    }

    .expansion-additional {
        padding-left: 0;
    }

    .services-expansion-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .services-expansion-section {
        padding: 2rem 0;
    }

    .expansion-text h2 {
        font-size: 1.3rem;
    }

    .expansion-additional p {
        font-size: 1rem;
    }

    .service-expansion-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .service-expansion-item span {
        font-size: 0.9rem;
    }
}

/* MEDICAL SPECIALTIES SECTION */
.medical-specialties-section {
    background-color: var(--white);
    padding: 0;
    margin: 4rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.specialties-header {
    text-align: center;
    margin-bottom: 0;
    background-color: #7FCBDB;
    padding: 0.8rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.specialties-header h2 {
    color: #0C4C91;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
}

.specialty-column {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background-color: transparent;
    padding: 1rem;
}

.specialty-item {
    color: #999;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.3;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.specialty-item::before {
    content: "";
    color: #0C4C91;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Solo agregar guión a opciones que NO son títulos */
.specialty-item:not(:has(strong))::before {
    content: "- ";
    color: #55C0E8;
}

.specialty-item:hover::before {
    transform: scale(1.2);
    color: #00A0DD;
}

/* Estilos para títulos de prácticas médicas */
.specialty-item strong {
    color: #000000;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #00A0DD;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.specialty-item:first-child strong {
    margin-top: 0;
}

.specialty-item:hover strong {
    color: #000000;
}

@media (max-width: 1024px) {
    .specialties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 2rem 1.5rem;
    }

    .specialties-header {
        padding: 1.3rem 0;
    }

    .specialties-header h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .medical-specialties-section {
        margin: 2rem 0;
    }

    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1.5rem 1rem;
    }

    .specialties-header {
        padding: 1.2rem 0;
    }

    .specialties-header h2 {
        font-size: 1.4rem;
    }

    .specialty-column {
        padding: 0.8rem;
    }

    .specialty-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 1rem 0.5rem;
    }

    .specialties-header {
        padding: 1rem 0;
    }

    .specialties-header h2 {
        font-size: 1.2rem;
    }

    .specialty-column {
        padding: 0.6rem;
    }

    .specialty-item {
        font-size: 0.75rem;
        padding: 0.25rem 0;
    }
}

/* Responsive adicional para tablets */
@media (max-width: 1200px) {
    .medical-specialties-section .specialties-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.2rem !important;
        padding: 2rem 1rem !important;
    }
}

@media (max-width: 900px) {
    .medical-specialties-section .specialties-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 1.8rem 1rem !important;
    }

    .medical-specialties-section .specialty-item {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 700px) {
    .medical-specialties-section .specialties-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
        padding: 1.5rem 0.8rem !important;
    }

    .medical-specialties-section .specialty-item {
        font-size: 0.85rem !important;
        padding: 0.4rem 0 !important;
    }

    .medical-specialties-section .specialty-item strong {
        font-size: 1rem !important;
        margin-top: 0.8rem !important;
        margin-bottom: 0.4rem !important;
    }
}

/* NUEVOS ESTILOS PARA SERVICIOS RESPONSIVOS */
.services-section {
    background-color: var(--white);
    margin: 4rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

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

.services-title {
    text-align: center;
    margin-bottom: 0;
    background-color: #7FCBDB;
    padding: 0.8rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.services-title h2 {
    color: #0C4C91;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.services-content {
    background-color: var(--white);
    padding: 2rem;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    padding: 0.8rem 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #55C0E8;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.service-item:hover {
    background-color: #e8f4fd;
    border-left-color: #00A0DD;
    transform: translateX(5px);
    color: #333;
}

.service-item::before {
    content: "•";
    color: #55C0E8;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ESTILOS PARA ESPECIALIDADES SIMPLES SIN TARJETAS */
.specialties-simple-content {
    background-color: var(--white);
    padding: 3rem 2rem;
}

.specialties-simple-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.8rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.specialty-simple-item {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.specialty-simple-item:hover {
    color: #333;
    transform: translateX(5px);
}

/* El punto celeste ya está incluido en el texto */

/* Prácticas médicas */
.practices-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.practice-category {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.practice-category:hover {
    border-color: #00A0DD;
    box-shadow: 0 4px 15px rgba(0, 160, 221, 0.1);
}

.practice-title {
    color: #0C4C91;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: #00A0DD;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    margin-bottom: 1rem;
    display: block;
}

.practice-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.practice-item {
    color: #666;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.3;
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1rem;
}

.practice-item::before {
    content: "−";
    color: #55C0E8;
    font-weight: 600;
    position: absolute;
    left: 0;
}

.practice-item:hover {
    color: #333;
}

/* Centro de Diagnóstico */
.diagnostic-center-section {
    background-color: #E0E0E0;
    padding: 1rem 0;
    margin: 2rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.diagnostic-logo {
    text-align: center;
    margin-bottom: 0.5rem;
}

.diagnostic-logo img {
    height: 80px;
    margin-bottom: 0.5rem;
}

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

.diagnostic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.diagnostic-info,
.diagnostic-services {
    padding: 1.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.diagnostic-intro {
    color: #00A0DD;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.diagnostic-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.diagnostic-title {
    color: #0C4C91;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.diagnostic-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.diagnostic-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.diagnostic-item i {
    color: #55C0E8;
    font-size: 0.4rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

/* Nefrología */
.nephrology-section {
    background-color: #E8E8E8;
    padding: 1rem 0;
    margin: 2rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.nephrology-logo {
    text-align: center;
    margin-bottom: 0.5rem;
}

.nephrology-logo img {
    height: 80px;
    margin-bottom: 0.5rem;
}

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

.nephrology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
}

.nephrology-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

.nephrology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 160, 221, 0.2);
}

.nephrology-icon {
    color: #00A0DD;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.nephrology-title {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.nephrology-title span {
    color: #00A0DD;
    font-weight: 700;
}

.section-spacer {
    height: 3rem;
}

/* IMAGEN ASSOCIATE SANOS */
.associate-sanos-section {
    background-color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.associate-sanos-image {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.associate-sanos-image:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .associate-sanos-section {
        padding: 1.5rem 0;
    }
    
    .associate-sanos-image {
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .associate-sanos-section {
        padding: 1rem 0;
    }
    
    .associate-sanos-image {
        max-height: 70px;
    }
}

/* SECCIÓN DE ÚLTIMAS NOVEDADES */
.latest-news-section {
    background-color: #F26133;
    padding: 4rem 0;
}

.latest-news-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.latest-news-section .section-header h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.latest-news-section .section-header p {
    color: var(--white);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 160, 221, 0.2);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    color: #0F1017;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.news-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: 3c3c3f;
    font-size: 0.9rem;
    font-weight: 500;
}

.news-date i {
    font-size: 0.85rem;
}

.news-cta {
    text-align: center;
}

.news-cta .btn {
    padding: 12px 30px;
    font-size: 1rem;
    background-color: var(--white);
    color: #F26133;
    border: 2px solid var(--white);
}

.news-cta .btn:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}
}

/* Botón Ver más en tarjetas de novedades */
.btn-ver-mas {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: flex-start;
}

.btn-ver-mas:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

.btn-ver-mass {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: flex-start;
}

.btn-ver-mass:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

/* Modal de Novedades */
.news-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.news-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.news-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.news-modal-close:hover {
    color: #000;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Contenido del modal de novedades */
.news-detail-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

.news-detail-header h1 {
    font-size: 2.2rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.news-detail-header .fecha {
    font-size: 1.1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.news-detail-body {
    padding: 2rem;
}

.news-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.news-detail-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.news-detail-image:hover {
    transform: scale(1.02);
}

.news-detail-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-detail-content {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.news-detail-content h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.news-detail-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.news-detail-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.news-detail-content li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.news-detail-actions {
    background: #f0f0f0;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    justify-content: center;
    border-radius: 0 0 15px 15px;
}

.btn-cerrar-modal {
    background: var(--primary-blue);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-cerrar-modal:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

/* Responsive para modal de novedades */
@media (max-width: 768px) {
    .news-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .news-detail-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .news-detail-header h1 {
        font-size: 1.8rem;
    }

    .news-detail-body {
        padding: 1.5rem;
    }

    .news-detail-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-detail-content {
        padding: 1.5rem;
    }

    .news-detail-actions {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }

    .btn-cerrar-modal {
        width: 100%;
    }
}

/* Responsive para sección de novedades */
@media (max-width: 768px) {
    .latest-news-section {
        padding: 3rem 0;
    }

    .latest-news-section .section-header h2 {
        font-size: 2rem;
    }

    .latest-news-section .section-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .latest-news-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .news-card {
        min-height: 350px;
    }

    .news-image {
        height: 180px;
    }

    .news-content {
        padding: 1.2rem;
    }

    .news-content h3 {
        font-size: 1.2rem;
    }

    .news-content p {
        font-size: 0.9rem;
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .services-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.8rem;
    }

    .specialties-simple-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem 2.5rem;
    }

    .practices-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .diagnostic-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .nephrology-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-title h2 {
        font-size: 1.5rem;
    }

    .services-content {
        padding: 1.5rem 1rem;
    }

    .specialties-simple-content {
        padding: 2rem 1rem;
    }

    .specialties-simple-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.8rem 2rem;
    }

    .services-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .practices-list {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .practice-category {
        padding: 1.2rem;
    }

    .diagnostic-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .diagnostic-info,
    .diagnostic-services {
        padding: 1.2rem;
    }

    .nephrology-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nephrology-card {
        padding: 1.5rem;
        min-height: 160px;
    }

    .nephrology-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .services-title h2 {
        font-size: 1.3rem;
    }

    .services-content {
        padding: 1rem 0.5rem;
    }

    .specialties-simple-content {
        padding: 1.5rem 0.8rem;
    }

    .specialties-simple-list {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .specialty-simple-item {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    .service-item {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .practice-category {
        padding: 1rem;
    }

    .practice-title {
        font-size: 1rem;
    }

    .practice-item {
        font-size: 0.8rem;
    }

    .diagnostic-info,
    .diagnostic-services {
        padding: 1rem;
    }

    .diagnostic-title {
        font-size: 1.1rem;
    }

    .diagnostic-item {
        font-size: 0.85rem;
    }

    .nephrology-card {
        padding: 1.2rem;
        min-height: 140px;
    }

    .nephrology-icon {
        font-size: 2rem;
    }

    .nephrology-title {
        font-size: 0.9rem;
    }

    .diagnostic-logo img,
    .nephrology-logo img {
        height: 60px;
    }
}

/* PARTICLE ANIMATION */
@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0);
    }
}

/* HOVER EFFECTS PARA SERVICIOS */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.service-card:hover::after {
    left: 100%;
}

/* ESTILOS PARA ÍCONOS DE SERVICIOS MEJORADOS */
.service-icon {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 3rem;
    font-size: 8rem;
    color: var(--white);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    box-shadow: 0 15px 40px rgba(0, 160, 221, 0.3);
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.service-card:hover .service-icon::before {
    left: 100%;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotateY(10deg);
    box-shadow: 0 15px 40px rgba(0, 160, 221, 0.5);
}

/* Animación para aparición de íconos */
@keyframes iconAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Pulso para íconos */
.icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
    opacity: 0;
}

.service-card:hover .icon-pulse {
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ESTILOS PARA PÁGINA DE NOVEDADES */
.novedad-fecha {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    color: #292929;
    font-size: 0.9rem;
    font-weight: 600;
}

.novedad-fecha i {
    font-size: 0.8rem;
}

.comunicados-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.comunicados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.comunicado-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.comunicado-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 160, 221, 0.15);
}

.comunicado-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.comunicado-content h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.comunicado-content p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
}

.comunicado-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Sección CTA */
.cta-section {
    background: #F26133;
    padding: 4rem 2rem;
    margin: 4rem 0;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
    justify-content: center;
}

.cta-buttons .btn-primary {
    background-color: var(--white);
    color: #F26133;
    border: 2px solid var(--white);
}

.cta-buttons .btn-primary:hover {
    background-color: transparent;
    color: var(--white);
}

.cta-buttons .btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-buttons .btn-secondary:hover {
    background-color: var(--white);
    color: #F26133;
}

/* Responsive para Novedades */
@media (max-width: 768px) {
    .comunicados-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    .comunicado-item {
        padding: 1.5rem;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .comunicado-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin: 0 auto;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .comunicados-section {
        padding: 2rem 0;
        margin: 2rem 0;
        padding: 0 10px;
    }

    .comunicado-item {
        padding: 1.2rem;
    }

    .comunicado-content h3 {
        font-size: 1.1rem;
    }

    .comunicado-content p {
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

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

    .cta-content p {
        font-size: 1rem;
    }
}

/* RESPONSIVE PARA NUEVAS TARJETAS */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .new-service-card {
        min-height: 550px;
    }

    .service-image {
        height: 250px;
    }

    .service-content {
        padding: 2.5rem;
    }

    .service-content h3 {
        font-size: 2.2rem;
    }

    .service-content p {
        font-size: 1.2rem;
    }

    .service-icon {
        width: 220px;
        height: 220px;
        font-size: 6.5rem;
    }

    .service-card h3 {
        font-size: 2.8rem;
    }

    .service-card p {
        font-size: 1.6rem;
    }

    .service-card {
        min-height: 650px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .new-service-card {
        min-height: 480px;
    }

    .service-image {
        height: 220px;
    }

    .service-content h3 {
        font-size: 2rem;
    }

    .service-content p {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 3rem 2.5rem;
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        min-height: 580px;
    }

    .service-card:hover {
        transform: translateY(-5px) !important;
    }

    .service-icon {
        width: 180px;
        height: 180px;
        font-size: 5.5rem;
        margin-bottom: 2rem;
    }

    .service-card h3 {
        font-size: 2.5rem;
    }

    .service-card p {
        font-size: 1.5rem;
    }

    .header-icon {
        font-size: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .stats-section {
        padding: 2rem 0;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .new-service-card {
        min-height: 420px;
    }

    .service-image {
        height: 180px;
    }

    .service-content {
        padding: 2rem;
    }

    .service-content h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .service-content p {
        font-size: 1rem;
    }

    .feature-card,
    .service-card {
        padding: 2rem 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.4rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .header-icon {
        font-size: 2.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

/* PARTNER BAR */
.partner-bar {
    background-color: #F26133;
    color: var(--white);
    padding: 0.5rem 0;
}

.partner-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.partner-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/*.partner-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}*/

.partner-link i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .partner-links {
        flex-direction: column;
        gap: 1rem;
    }

    .partner-bar {
        padding: 1.5rem 0;
    }
}

/* FOOTER */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #388DC1;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

@media (max-width: 768px) {
    .footer-section p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .footer-section p {
        font-size: 0.8rem;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15rem;
    flex-wrap: wrap;
}

.developer-info {
    display: flex;
    font-weight: 500;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.developer-logo {
    height: 20px;
    width: auto;
}

.developer-logo:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .footer-bottom {
        gap: 0.8rem;
    }
    
    .developer-info {
        font-size: 0.8rem;
    }
    
    .developer-logo {
        height: 18px;
    }
}

/* Ocultar elementos móviles en desktop */
@media (min-width: 769px) {

    @media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}
    .menu-separator {
        display: none !important;
    }

    .mobile-quick-btn {
        display: none !important;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 8px;
    }

    .quick-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .quick-btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .social-links {
        gap: 5px;
    }

    .social-link {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }

    header {
        top: 0;
        box-shadow: none;
    }

    main {
        margin-top: 90px;
    }

    .hero {
        min-height: 420px;
        padding: 1.5rem 0;
    }

    .hero .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-arrow.prev {
        left: 10px;
    }

    .carousel-arrow.next {
        right: 10px;
    }

    /* Ajustes para el carrusel en móvil */
    .hero-content h1 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .slide-logo img {
        max-height: 70px !important;
        margin-bottom: 0.8rem !important;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .hero-buttons {
        margin-top: 1rem;
    }

    .hamburger {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
        padding: 6rem 0 2rem;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1001;
        overflow-y: auto;
        opacity: 0;
        transform: translateX(20px);
    }

    .nav-menu.active {
        right: 0;
        opacity: 1;
        transform: translateX(0);
    }

    .nav-link {
        padding: 0.1rem 3rem;
        border-radius: 0;
        border-bottom: none;
        position: relative;
        transition: all 0.3s ease;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        min-height: 60px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover:not(.active) {
        background-color: rgba(0, 160, 221, 0.1);
        color: #00A0DD;
    }

    .nav-link.active {
        color: #00A0DD;
        background-color: transparent;
        position: relative;
    }

    .nav-link.active:not(.logo .nav-link)::before {
        content: ">";
        position: absolute;
        left: 1.5rem;
        color: #00A0DD;
        font-weight: bold;
        font-size: 1.3rem;
        display: flex;
        align-items: center;
        height: 100%;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Separador en menú móvil */
    .menu-separator {
        height: 1px;
        background-color: #ddd;
        margin: 1rem 2rem;
        opacity: 0.5;
        display: block;
    }

    /* Botones de acceso rápido en menú móvil */
    .mobile-quick-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 2rem;
        margin: 0.5rem 1rem;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s ease;
        justify-content: center;
        min-height: 50px;
    }

    .mobile-quick-btn.portal {
        background-color: #FFFFFF;
        color: var(--text-gray);
        border: 2px solid #ddd;
    }

    .mobile-quick-btn.turnos {
        background-color: #0C4C91;
        color: var(--white);
    }

    .mobile-quick-btn.whatsapp {
        background-color: #0C4C91;
        color: var(--white);
    }

    .mobile-quick-btn.urgencias {
        background-color: #0C4C91;
        color: var(--white);
    }

    .mobile-quick-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .mobile-quick-btn i {
        font-size: 1rem;
    }

    /* Overlay para cerrar menú */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

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

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .content-grid,
    .jobs-content,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-icons {
        justify-content: center;
    }

    .contact-info-box {
        padding: 1.5rem;
    }

    .main-contact-form {
        order: 2;
    }

    .contact-sidebar {
        order: 1;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 5px 0;
    }

    .quick-actions {
        gap: 3px;
    }

    .quick-btn {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .social-links {
        gap: 5px;
    }

    .social-link {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }

    main {
        margin-top: 80px;
    }

    .logo-img {
        height: 40px;
    }

    /* Ajustes específicos para el carrusel en móviles pequeños */
    .hero-content h1 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }

    .slide-logo img {
        max-height: 60px !important;
        margin-bottom: 0.6rem !important;
    }

    .btn {
        padding: 8px 14px;
        font-size: 0.75rem;
        border-radius: 18px;
    }

    .hero {
        min-height: 380px;
        padding: 1rem 0;
    }

    .hero .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .feature-card,
    .service-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .header-icon {
        font-size: 2.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
}

/* Sección de Centro de Diagnóstico Cruz del Eje */
.diagnostic-center-section {
    background-color: #E0E0E0;
    padding: 1rem 0;
    margin: 4rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* NEPHROLOGY SECTION */
.nephrology-section {
    background-color: #E8E8E8;
    padding: 1rem 0;
    margin: 4rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
