html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ajusta este valor según la altura de tu menú */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    background: #fff;
    color: #222;
    box-sizing: border-box;
    overflow-x: hidden;
}

.navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0;
    margin: 0;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
    min-height: 80px;
    transition: min-height 0.3s ease-in-out;
}

.logo-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-left: 0px;
    padding-left: 30px;
    position: relative;
    width: 100%;
    height: 80px;
}

.logo-img {
    width: 125%;
    height: 120px;
    object-fit: contain;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    color: #000;
    text-shadow: none;
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

.inst-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: #000;
    text-transform: uppercase;
    white-space: normal;
    margin-bottom: 2px;
}

.inst-name {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.7px;
    color: #000;
    margin-top: 0px;
    margin-bottom: 2px;
    text-transform: none;
    white-space: normal;
}

.inst-loc {
    font-size: 10px;
    color: #000;
    margin-top: 0px;
    text-transform: none;
    white-space: normal;
    letter-spacing: 0.5px;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.menu li a {
    display: block;
    padding: 15px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu li a:hover {
    background: #f5f5f5;
    color: #000000;
    transform: translateY(-1px);
}

.menu li a:hover::before {
    width: 80%;
}

/* Estilos del submenú */
.menu li.sub-menu > a:after {
    content: '\f107';
    font-family: 'FontAwesome';
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #000000;
}

.menu li.sub-menu:hover > a:after {
    transform: rotate(180deg);
}

.menu li.sub-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    min-width: 250px;
    padding: 8px 0;
    margin: 5px 0 0 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.menu li.sub-menu:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu li.sub-menu ul li {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
}

.menu li.sub-menu ul li a {
    padding: 12px 20px;
    color: #000000;
    font-size: 13px;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu li.sub-menu ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #000;
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.menu li.sub-menu ul li a:hover {
    background: #f5f5f5;
    color: #000000;
    padding-left: 25px;
}

.menu li.sub-menu ul li a:hover::before {
    transform: scaleY(1);
}

/* Efecto de brillo al hover */
.menu li a::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.menu li a:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* Responsive */
@media (max-width: 900px) {
    .menu {
        flex-direction: column;
        align-items: flex-start;
        background: #ffffff;
    }

    .menu ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .menu li.sub-menu ul {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #f9f9f9;
        margin: 0;
        border: none;
    }

    .menu li.sub-menu:hover > ul {
        display: block;
    }

    .menu li.sub-menu ul li a {
        padding: 12px 30px;
        color: #000000;
    }

    .menu li.sub-menu ul li a:hover {
        background: #f0f0f0;
        color: #000000;
    }

    /* Ajustes para móvil */
    .menu li a::before,
    .menu li a::after {
        display: none;
    }

    .menu li.sub-menu ul li a::before {
        display: none;
    }
}

.carousel-container {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 480px;
    background: #e3f2fd;
    overflow: hidden;
    box-sizing: border-box;
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 480px;
    width: 100vw;
    max-width: 100vw;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.carousel-img.active {
    opacity: 1;
    z-index: 2;
}

.carousel-btn {
    background: rgba(25,118,210,0.85);
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 50%;
    margin: 0 10px;
    transition: background 0.2s;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(25,118,210,0.10);
}
.carousel-btn.prev {
    left: 30px;
}
.carousel-btn.next {
    right: 30px;
}
.carousel-btn:hover {
    background: #388e3c;
    color: #fff;
}
.carousel-thumbnails {
    display: none;
}
.thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: border 0.2s, opacity 0.2s;
    box-shadow: 0 1px 4px rgba(26,35,126,0.08);
}
.thumb.active {
    border: 2px solid #1976d2;
    opacity: 1;
}
.carousel-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a237e;
    text-align: center;
    z-index: 15;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 35px 60px;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    animation: fadeInUpGlass 1s cubic-bezier(0.23, 1, 0.32, 1) both;
    transition: all 0.4s ease-in-out;
}

@keyframes fadeInUpGlass {
    from {
        opacity: 0;
        transform: translate(-50%, -30%) scale(0.95);
        backdrop-filter: blur(0) saturate(1);
        background: rgba(255, 255, 255, 0.01);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        backdrop-filter: blur(20px) saturate(1.5);
        background: rgba(255, 255, 255, 0.02);
    }
}

.carousel-title h1 {
    font-size: 4rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: 3.5px;
    color: #1a237e;
    text-shadow: 0 3px 12px rgba(26, 35, 126, 0.2);
    transition: color 0.3s ease;
}

.carousel-title p {
    font-size: 1.5rem;
    margin: 10px 0 0 0;
    font-weight: 600;
    color: #455a64;
    letter-spacing: 1.2px;
    text-shadow: 0 1px 6px rgba(69, 90, 100, 0.15);
    transition: color 0.3s ease;
}

.carousel-title:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-title:hover h1,
.carousel-title:hover p {
    color: #0d47a1;
}

@media (max-width: 900px) {
    .navbar-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px;
        min-height: 60px;
    }
    .logo-area {
        padding-top: 8px;
        gap: 8px;
        margin-left: 0;
        height: 60px;
        padding-left: 10px;
    }
    .logo-img {
        width: 100%;
        height: 100px;
        left: -20px;
    }
    .logo-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 0px;
        line-height: 1.1;
    }
    .inst-title {
        font-size: 10.5px;
        letter-spacing: 0.6px;
        margin-bottom: 1px;
    }
    .inst-name {
        font-size: 14.5px;
        letter-spacing: 0.7px;
        margin-bottom: 1px;
    }
    .inst-loc {
        font-size: 8.5px;
        letter-spacing: 0.5px;
    }
    .menu ul {
        gap: 7px;
        flex-wrap: wrap;
        justify-content: center;
        padding-bottom: 6px;
        margin: 0;
    }
    .menu ul li {
        font-size: 10.5px;
        padding: 4.5px 9px;
        border-radius: 15px;
        letter-spacing: 0.35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .menu ul li a {
        padding: 12px 15px;
        font-size: 13px;
        margin: 0;
    }
    .menu ul li::before {
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease-in-out;
    }
    .menu ul li:hover::before {
        transform: scaleX(1);
    }
    .menu ul li::after {
        height: 1.5px;
        bottom: -0.5px;
    }
    .carousel-slide, .carousel-img {
        width: 100%;
        min-width: 100%;
        height: 250px;
    }
    .carousel {
        height: 250px;
    }
    .carousel-title {
        padding: 15px;
        width: 95%;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(12px) saturate(1.3);
    }
    .carousel-title h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    .carousel-title p {
        font-size: 0.9rem;
    }
    .menu-toggle {
        margin-right: 10px;
    }
    .navbar {
        min-height: 80px;
    }
    main {
        padding-top: 68px;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Media queries para dispositivos móviles */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
        position: relative;
        width: 30px;
        height: 22px;
        justify-content: space-between;
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 1002;
        margin-left: auto;
        margin-top: -15px;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #000;
        transition: all 0.3s ease;
        border-radius: 3px;
    }

    .navbar-content {
        padding: 0 10px;
    }

    .logo-area {
        transition: transform 0.3s ease;
    }

    .menu.active + .logo-area,
    .menu.active ~ .logo-area {
        transform: translateX(-100%);
        opacity: 0;
    }

    .menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .menu.active {
        left: 0;
    }

    .menu ul {
        flex-direction: column;
        padding: 10px;
    }

    .menu li {
        width: 100%;
    }

    .menu li a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .menu li.sub-menu ul {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        display: none;
    }

    .menu li.sub-menu.active ul {
        display: block;
    }

    .menu li.sub-menu > a:after {
        float: right;
    }

    /* Estilos responsivos para el carrusel */
    .carousel-container {
        height: 50vh;
        margin-top: 60px;
    }

    .carousel-slide {
        height: 100%;
    }

    .carousel-img {
        height: 100%;
        object-fit: cover;
    }

    .carousel-title {
        padding: 15px;
        width: 95%;
    }

    .carousel-title h1 {
        font-size: 1.8rem;
    }

    .carousel-title p {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .carousel-container {
        height: 50vh;
    }

    .carousel-title h1 {
        font-size: 1.5rem;
    }

    .carousel-title p {
        font-size: 0.9rem;
    }
}

.menu-options.hidden {
    display: none !important;
}
.menu-options {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.menu ul {
    align-items: center;
}
.menu ul li {
    margin: 0 2px;
}
.menu ul li button.menu-toggle {
    margin-left: 6px;
}

.convivencia-section {
    width: 100%;
    background: linear-gradient(90deg, #f5fff5 60%, #e3fdea 100%);
    padding: 60px 0 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}
.convivencia-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 90%;
    gap: 60px;
}
.convivencia-info {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.convivencia-info h2 {
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
    letter-spacing: 1px;
}
.convivencia-strong {
    color: #388e3c;
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: 2px;
}
.convivencia-desc {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 32px;
    max-width: 500px;
}
.convivencia-buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}
.convivencia-btn {
    background: linear-gradient(90deg, #388e3c 60%, #a5d6a7 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 18px 24px;
    border: none;
    border-radius: 8px;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(56, 142, 60, 0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 1px;
    outline: none;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.convivencia-btn:hover {
    background: linear-gradient(90deg, #2e7d32 60%, #81c784 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(56, 142, 60, 0.13);
}
.convivencia-img-area {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.convivencia-img {
    max-width: 340px;
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(56, 142, 60, 0.13);
    background: #fff;
    object-fit: contain;
}
@media (max-width: 900px) {
    .convivencia-section {
        padding: 30px 0 30px 0;
        min-height: 300px;
    }
    .convivencia-content {
        flex-direction: column;
        gap: 30px;
        width: 98%;
    }
    .convivencia-info h2 {
        font-size: 1.5rem;
    }
    .convivencia-strong {
        font-size: 1.7rem;
    }
    .convivencia-btn {
        font-size: 0.95rem;
        padding: 12px 14px;
        max-width: 100%;
    }
    .convivencia-img {
        max-width: 220px;
        border-radius: 14px;
    }
}

.noticias-section {
    width: 100%;
    background: linear-gradient(135deg, #e8f5e9 60%, #f5fff5 100%);
    position: relative;
    padding: 90px 0 90px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
    overflow: hidden;
}
.noticias-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -120px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at 60% 40%, #a5d6a7 0%, #e8f5e9 80%);
    opacity: 0.45;
    z-index: 1;
    border-radius: 50%;
    filter: blur(8px);
}
.noticias-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 40% 60%, #388e3c 0%, #e8f5e9 80%);
    opacity: 0.18;
    z-index: 1;
    border-radius: 50%;
    filter: blur(10px);
}
.noticias-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    max-width: 1100px;
    width: 92%;
    gap: 0;
    background: rgba(255,255,255,0.85);
    border-radius: 32px;
    box-shadow: 0 12px 48px 0 rgba(56, 142, 60, 0.18), 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
    backdrop-filter: blur(7px) saturate(1.2);
    position: relative;
    z-index: 2;
    border: 1.5px solid #e0f2f1;
    animation: fadeInUp 1.1s cubic-bezier(.23,1.01,.32,1) both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: none; }
}
.noticias-info {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 44px 56px 56px;
    background: transparent;
    position: relative;
}
.noticias-badge {
    display: inline-block;
    background: linear-gradient(90deg, #388e3c 60%, #a5d6a7 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: bold;
    padding: 6px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.13);
    animation: popIn 1.2s cubic-bezier(.23,1.01,.32,1) both;
}
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.7); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}
.noticias-info h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 18px;
    color: #222;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(56,142,60,0.04);
}
.noticias-strong {
    color: #388e3c;
    font-weight: 900;
    font-size: 2.7rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(56,142,60,0.10);
}
.noticias-desc {
    font-size: 1.18rem;
    color: #444;
    margin-bottom: 0;
    max-width: 520px;
    line-height: 1.8;
    text-shadow: 0 1px 4px rgba(56,142,60,0.04);
}
.noticias-img-area {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 0 36px;
    min-width: 340px;
    position: relative;
}
.noticias-img {
    max-width: 320px;
    width: 100%;
    border-radius: 32px 32px 60px 32px;
    box-shadow: 0 16px 48px rgba(56, 142, 60, 0.18), 0 2px 12px rgba(0,0,0,0.04);
    background: #fff;
    object-fit: cover;
    margin-top: 40px;
    margin-bottom: 22px;
    border: 6px solid #fff;
    outline: 4px solid #388e3c;
    outline-offset: -10px;
    transition: transform 0.25s, box-shadow 0.25s;
    animation: fadeInImg 1.2s cubic-bezier(.23,1.01,.32,1) both;
}
@keyframes fadeInImg {
    from { opacity: 0; transform: scale(0.8) rotate(-8deg); }
    to { opacity: 1; transform: none; }
}
.noticias-img:hover {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 24px 64px rgba(56, 142, 60, 0.22);
}
.noticias-btn {
    margin-top: 10px;
    background: linear-gradient(90deg, #388e3c 60%, #a5d6a7 100%);
    color: #fff;
    font-size: 1.13rem;
    font-weight: bold;
    padding: 16px 38px 16px 28px;
    border: none;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(56, 142, 60, 0.13);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 1.2px;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}
.noticias-btn svg {
    width: 1.5em;
    height: 1.5em;
    fill: #fff;
    margin-left: 10px;
    transition: transform 0.2s;
}
.noticias-btn:hover {
    background: linear-gradient(90deg, #2e7d32 60%, #81c784 100%);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 10px 28px rgba(56, 142, 60, 0.18);
}
.noticias-btn:hover svg {
    transform: translateX(8px) scale(1.1);
}
@media (max-width: 900px) {
    .noticias-section {
        padding: 32px 0 32px 0;
        min-height: 220px;
    }
    .noticias-content {
        flex-direction: column;
        gap: 0;
        width: 98%;
        border-radius: 18px;
    }
    .noticias-info {
        padding: 20px 10px 10px 10px;
    }
    .noticias-info h2 {
        font-size: 1.3rem;
    }
    .noticias-strong {
        font-size: 1.1rem;
    }
    .noticias-btn {
        font-size: 0.95rem;
        padding: 10px 18px 10px 12px;
    }
    .noticias-img-area {
        min-width: 0;
        padding: 0 6px 16px 6px;
    }
    .noticias-img {
        max-width: 170px;
        border-radius: 14px 14px 28px 14px;
        margin-top: 12px;
        margin-bottom: 8px;
    }
}

.galeria-section {
    width: 100%;
    background: linear-gradient(120deg, #f5fff5 60%, #e3fdea 100%);
    padding: 70px 0 70px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 520px;
    box-sizing: border-box;
}
.galeria-header {
    text-align: center;
    margin-bottom: 32px;
}
.galeria-header h2 {
    font-size: 2.7rem;
    font-weight: 900;
    color: #222;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.galeria-strong {
    color: #388e3c;
    font-weight: 900;
    font-size: 2.8rem;
    letter-spacing: 2px;
}
.galeria-desc {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.galeria-carrusel-container {
    position: relative;
    width: 90vw;
    max-width: 900px;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(56, 142, 60, 0.13), 0 1.5px 8px rgba(0,0,0,0.04);
    padding: 32px 0;
    overflow: hidden;
}
.galeria-carrusel {
    width: 100%;
    max-width: 700px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.galeria-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(56, 142, 60, 0.10);
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.5s, transform 0.5s;
    z-index: 1;
    transform: scale(0.98);
}
.galeria-img.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
}
.galeria-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #388e3c;
    color: #388e3c;
    font-size: 2.2rem;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.10);
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
    z-index: 10;
    opacity: 0.92;
}
.galeria-arrow:hover {
    background: #388e3c;
    color: #fff;
    border: 2px solid #388e3c;
    transform: translateY(-50%) scale(1.08);
}
.galeria-prev {
    left: 18px;
}
.galeria-next {
    right: 18px;
}
.galeria-thumbnails {
    display: none;
}
.galeria-thumb {
    width: 80px;
    height: 54px;
    object-fit: cover;
    border: 2.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: border 0.2s, opacity 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(56, 142, 60, 0.08);
}
.galeria-thumb.active {
    border: 2.5px solid #388e3c;
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(56, 142, 60, 0.13);
}
.galeria-more-btn {
    display: inline-block;
    margin-top: 30px;
    background: linear-gradient(90deg, #388e3c 60%, #a5d6a7 100%);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(56, 142, 60, 0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    letter-spacing: 1px;
    outline: none;
    cursor: pointer;
}
.galeria-more-btn:hover {
    background: linear-gradient(90deg, #2e7d32 60%, #81c784 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(56, 142, 60, 0.15);
}
@media (max-width: 900px) {
    .galeria-section {
        padding: 30px 0 30px 0;
        min-height: 320px;
    }
    .galeria-header h2 {
        font-size: 1.3rem;
    }
    .galeria-strong {
        font-size: 1.4rem;
    }
    .galeria-carrusel-container {
        max-width: 98vw;
        padding: 10px 0;
    }
    .galeria-carrusel {
        max-width: 98vw;
        height: 180px;
    }
    .galeria-img, .galeria-img.active {
        height: 180px;
        border-radius: 8px;
    }
    .galeria-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
    .galeria-more-btn {
        font-size: 1rem;
        padding: 10px 24px;
        margin-top: 20px;
    }
}

main {
    padding-top: 52px;
    margin: 0;
}

/* Directivos Section Styles */
.directivos-section {
    width: 100%;
    background: linear-gradient(160deg, #e8f5e9 60%, #f5fff5 100%); /* Greenish background */
    padding: 70px 0 70px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 500px;
    box-sizing: border-box;
}

.directivos-header {
    display: flex; /* Use flexbox to align title and nav */
    justify-content: space-between; /* Space between title and nav */
    align-items: center; /* Vertically center items */
    width: 90%; /* Match container width */
    max-width: 1200px; /* Match container max-width */
    margin: 0 auto 40px auto; /* Center the header and add bottom margin */
    padding: 0 20px; /* Add some horizontal padding */
    box-sizing: border-box;
}

.directivos-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #222;
    margin-bottom: 0; /* Remove bottom margin */
    letter-spacing: 1px;
    position: relative;
}

.directivos-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: #388e3c; /* Green underline */
    margin: 10px 0 0 0; /* Adjusted margin for left alignment */
    border-radius: 3px;
}

.directivos-nav {
    display: none; /* Hide the navigation container */
}

.directivos-container {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Center the cards */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px;
    max-width: 1200px;
    width: 90%;
    overflow-x: visible; /* Ensure content is visible */
    /* Remove scrollbar styles as they are not needed with overflow visible */
    /* -webkit-overflow-scrolling: touch; */
    /* scrollbar-width: none; */
    /* -ms-overflow-style: none;  */
}

.directivos-container::-webkit-scrollbar {
    display: none;
}

.directivo-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(56, 142, 60, 0.1), 0 1px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 300px;
    min-width: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
}

.directivo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(56, 142, 60, 0.15), 0 2px 8px rgba(0,0,0,0.08);
}

.directivo-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 6px solid #388e3c;
    transition: transform 0.3s ease-in-out;
}

.directivo-card:hover .directivo-img {
     transform: scale(1.05);
}

.directivo-info {
    padding: 15px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    background: #f1f8e9;
    border-top: 1px solid #e8f5e9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.directivo-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #33691e;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.directivo-description {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
    max-width: 250px;
}

/* Media Queries for responsiveness */
@media (max-width: 900px) {
    .directivos-section {
        padding: 40px 0 40px 0;
        min-height: 400px;
    }

     .directivos-header {
        flex-direction: column;
        align-items: center; /* Center header items on smaller screens */
        margin: 0 auto 30px auto; /* Center header and add bottom margin */
        padding: 0 10px;
        width: 95%; /* Match container width */
        max-width: 1200px; /* Match container max-width */
    }

    .directivos-header h2 {
        font-size: 2rem;
        margin-bottom: 10px;
        text-align: center; /* Center title text */
    }

    .directivos-header h2::after {
        width: 60px;
        height: 4px;
        margin: 8px auto 0 auto; /* Center underline */
    }

    .directivos-nav {
        display: none; /* Hide navigation */
    }

    .directivos-container {
        gap: 20px;
        width: 95%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .directivo-card {
        width: 250px;
        min-width: unset; /* Remove min-width constraint */
        border-radius: 14px;
        padding-bottom: 0;
    }

    .directivo-img {
        height: 350px;
        border-bottom: 4px solid #388e3c;
    }

    .directivo-info {
        padding: 12px 15px;
    }

    .directivo-title {
        font-size: 1rem;
        margin: 0 0 6px 0;
    }

    .directivo-description {
        font-size: 0.9rem;
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    .directivos-section {
        padding: 30px 0 30px 0;
    }

    .directivos-header h2 {
        font-size: 1.8rem;
    }

    .directivos-header h2::after {
        width: 50px;
        height: 3px;
    }

    .directivos-container {
        gap: 15px;
        width: 98%;
        justify-content: center;
    }

    .directivo-card {
        width: 95%;
        max-width: 300px;
        min-width: unset;
        border-radius: 12px;
        padding-bottom: 0;
    }

    .directivo-img {
        height: 300px;
        border-bottom: 3px solid #388e3c;
    }

    .directivo-info {
        padding: 10px 15px;
    }

    .directivo-title {
        font-size: 0.95rem;
        margin: 0 0 5px 0;
    }

    .directivo-description {
        font-size: 0.85rem;
        max-width: 250px;
    }
}

/* Tecnicas Section Styles */
.tecnicas-section {
    width: 100%;
    background: #f8f9fa; /* Light background */
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.tecnicas-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px; /* Limit header width */
    padding: 0 20px;
}

.tecnicas-header h2 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #343a40; /* Dark text */
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.tecnicas-header p {
    font-size: 1.1rem;
    color: #6c757d; /* Grey text */
    line-height: 1.6;
}

.tecnicas-container {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Center the blocks */
    flex-wrap: wrap; /* Allow wrapping */
    gap: 40px 30px; /* Vertical and horizontal gap */
    max-width: 1200px;
    width: 90%;
}

.tecnica-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 300px;
    min-width: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    border: 1px solid #e9ecef;
    padding-bottom: 0;
    position: relative;
}

.tecnica-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(56, 142, 60, 0.15), 0 2px 8px rgba(0,0,0,0.08);
}

.tecnica-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.tecnica-block:hover .tecnica-img {
     transform: scale(1.05);
}

.tecnica-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1;
}

.tecnica-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
}

.tecnica-info p {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 8px;
    line-height: 1.5;
}

.tecnica-info p:last-child {
    margin-bottom: 0;
}

.tecnica-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #007bff;
    color: white;
    padding: 12px 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    gap: 8px;
    font-size: 1rem;
    margin-top: 10px;
}

.tecnica-more-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.tecnica-more-btn:hover {
    background: #0056b3;
    transform: translateY(0);
    box-shadow: none;
}

.tecnica-more-btn:hover svg {
     transform: translateX(4px);
}

/* Remover estilos del botón anterior */
.tecnicas-more {
    display: none;
}
.tecnicas-more-btn {
    display: none;
}

/* Media Queries */
@media (max-width: 992px) {
    .tecnicas-header h2 {
        font-size: 2.2rem;
    }

    .tecnica-block {
        width: 300px; /* Adjust width for tablets */
    }

    .tecnica-img {
        height: 200px; /* Adjust height */
    }

    .tecnica-info {
        padding: 15px;
    }

    .tecnica-info h3 {
        font-size: 1.3rem;
    }

    .tecnica-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .tecnicas-section {
        padding: 60px 0;
    }

    .tecnicas-header {
        margin-bottom: 40px;
        padding: 0 15px;
    }

    .tecnicas-header h2 {
        font-size: 2rem;
    }

    .tecnicas-container {
        gap: 30px 20px;
        width: 95%;
    }

    .tecnica-block {
        width: 280px; /* Further adjust width */
    }

    .tecnica-img {
        height: 180px; /* Further adjust height */
    }

    .tecnica-info h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .tecnicas-section {
        padding: 40px 0;
    }

    .tecnicas-header {
        margin-bottom: 30px;
    }

    .tecnicas-header h2 {
        font-size: 1.8rem;
    }

     .tecnica-container {
         gap: 20px 15px;
     }

    .tecnica-block {
        width: 90%; /* Full width on small mobile screens */
        max-width: 350px; /* Limit max width */
    }

    .tecnica-img {
        height: 200px; /* Adjust height */
    }

    .tecnica-info {
        padding: 15px;
    }

    .tecnica-info h3 {
        font-size: 1.1rem;
    }

    .tecnica-info p {
        font-size: 0.85rem;
    }
}

.grade-section {
    width: 100%; /* Make grade section take full width */
    margin-bottom: 40px; /* Space after each grade section */
    padding-top: 20px; /* Add some padding at the top */
    border-top: 1px solid #e9ecef; /* Optional: Add a top border to separate sections */
    display: flex; /* Make it a flex container */
    flex-direction: row; /* Arrange technique blocks in a row */
    justify-content: center; /* Center the technique blocks within the row */
    flex-wrap: wrap; /* Allow technique blocks to wrap to the next row */
    gap: 30px; /* Space between technique blocks */
}

.grade-section:first-child {
    border-top: none; /* No top border for the first section */
    padding-top: 0; /* No top padding for the first section */
}

.grade-section h3 {
    font-size: 1.8rem; /* Size for grade title */
    font-weight: 700;
    color: #343a40; /* Dark text */
    margin-top: 0;
    margin-bottom: 30px; /* Space after title */
    text-align: center; /* Center grade title */
    width: 100%; /* Make title take full width within flex container */
}

.tecnica-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(56, 142, 60, 0.1), 0 1px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 300px; /* Fixed width for cards */
    min-width: unset; /* Remove min-width constraint to allow wrapping */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.tecnica-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(56, 142, 60, 0.15), 0 2px 8px rgba(0,0,0,0.08);
}

.tecnica-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.tecnica-block:hover .tecnica-img {
     transform: scale(1.05);
}

.tecnica-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.tecnica-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
}

.tecnica-info p {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 8px;
    line-height: 1.5;
}

.tecnica-info p:last-child {
    margin-bottom: 0;
}

/* Media Queries */
@media (max-width: 992px) {
    .tecnica-info p {
        font-size: 0.9rem;
    }

    .grade-section {
        margin-bottom: 30px;
        gap: 25px; /* Adjusted gap for tablets */
    }

    .grade-section h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .tecnica-block {
        width: 300px; /* Adjust width for tablets */
    }

    .tecnica-img {
        height: 200px;
    }

    .tecnica-info {
        padding: 15px;
    }

    .tecnica-info h3 {
        font-size: 1.3rem;
    }

    .tecnica-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .tecnica-info h3 {
        font-size: 1.2rem;
    }

    .grade-section {
        margin-bottom: 25px;
        gap: 20px; /* Adjusted gap */
    }

     .grade-section h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
     }

    .tecnica-block {
        width: 280px; /* Further adjust width */
    }

    .tecnica-img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .tecnica-info h3 {
        font-size: 1.1rem;
    }

    .tecnica-info p {
        font-size: 0.85rem;
    }

    .grade-section {
        margin-bottom: 20px;
        gap: 15px; /* Adjusted gap */
    }

    .grade-section h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .tecnica-block {
        width: 90%; /* Full width on small mobile screens */
        max-width: 350px;
    }

    .tecnica-img {
        height: 200px;
    }
}

/* PQR Section Styles */
.pqr-section {
    width: 100%;
    background: #f1f1f1; /* Light grey background */
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.pqr-container {
    background: #fff; /* White background for the form area */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06); /* Soft shadow */
    padding: 40px;
    max-width: 800px; /* Limit container width */
    width: 90%;
    box-sizing: border-box;
}

.pqr-container h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 0.8px;
}

.pqr-container form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    flex-wrap: wrap; /* Allow form groups to wrap */
    gap: 20px; /* Space between form groups */
    margin-bottom: 20px;
}

.form-group {
    flex: 1 1 200px; /* Allow flex growing/shrinking, base width 200px */
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%; /* Take full width */
}

.form-group label {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ccc; /* Light grey border */
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    width: 100%;
    box-sizing: border-box; /* Include padding and border in element's total width */
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff; /* Primary blue on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25); /* Subtle shadow on focus */
    outline: none;
}

.form-group select {
    appearance: none; /* Remove default arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%2C125.6c-3.3-3.3-7.7-5-12.4-5H17.8c-4.7%2C0-9.1%2C1.7-12.4%2C5c-6.5%2C6.5-6.5%2C17.1%2C0%2C23.7l127.3%2C127.3 c3.3%2C3.3%2C7.7%2C5%2C12.4%2C5s9.1-1.7%2C12.4-5L287%2C149.3C293.5%2C142.7%2C293.5%2C132.1%2C287%2C125.6z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
    padding-right: 35px; /* Make space for the arrow */
}

.submit-btn {
    display: block;
    width: 200px; /* Fixed width button */
    margin: 30px auto 0 auto; /* Center button and add top margin */
    padding: 15px 20px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%); /* Blue gradient */
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.35);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pqr-section {
        padding: 60px 0;
    }

    .pqr-container {
        padding: 30px;
        width: 95%;
    }

    .pqr-container h2 {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .form-row {
        flex-direction: column; /* Stack form groups on small screens */
        gap: 15px;
        margin-bottom: 15px;
    }

    .form-group {
        flex: 1 1 100%; /* Make each form group take full width */
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
        border-radius: 6px;
    }

    .form-group select {
        background-position: right 10px top 50%;
        background-size: 10px auto;
        padding-right: 30px;
    }

    .submit-btn {
        width: 180px;
        padding: 12px 15px;
        font-size: 1.1rem;
        margin-top: 25px;
    }
}

@media (max-width: 500px) {
    .pqr-section {
        padding: 40px 0;
    }

    .pqr-container {
        padding: 20px;
    }

    .pqr-container h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .form-row {
        gap: 10px;
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
    }

    .submit-btn {
        width: 150px;
        padding: 10px 15px;
        font-size: 1rem;
        margin-top: 20px;
    }
}

.tecnicas-more {
    text-align: center;
    margin-top: 40px;
}

.tecnicas-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a237e;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.2);
}

.tecnicas-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
    background: #283593;
}

.tecnicas-more-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.tecnicas-more-btn:hover svg {
    transform: translateX(4px);
}

/* Estilos del menú desplegable */
.menu ul li.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-content.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content li {
    display: block;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.dropdown-content li a {
    display: block;
    padding: 8px 20px;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.45px;
    transition: background-color 0.2s ease;
}

.dropdown-content li a:hover {
    background-color: #e3f2fd;
    color: #1a237e;
}

/* Eliminar cualquier regla de hover que pueda interferir */
.menu ul li.dropdown:hover .dropdown-content {
    display: none;
}

@media (max-width: 900px) {
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: 0;
        padding: 0;
    }
    
    .dropdown-content.visible {
        display: block;
    }
    
    .dropdown-content li a {
        padding: 10px 20px;
    }
}

/* Ajustes generales para móviles */
@media (max-width: 900px) {
    .navbar-content {
        padding: 0 10px;
        min-height: 60px;
    }

    .logo-area {
        height: 60px;
        padding-left: 10px;
    }

    .logo-img {
        width: 100%;
        height: 100px;
        left: -20px;
    }

    .menu-toggle {
        margin-right: 10px;
    }

    .menu {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .menu ul {
        padding: 10px;
    }

    .menu li a {
        padding: 12px 15px;
        font-size: 13px;
    }

    /* Ajustes para el carrusel en móvil */
    .carousel-container {
        height: 50vh;
        margin-top: 60px;
    }

    .carousel-title {
        padding: 15px;
        width: 95%;
    }

    .carousel-title h1 {
        font-size: 1.8rem;
    }

    .carousel-title p {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Ajustes específicos para celulares pequeños */
@media (max-width: 480px) {
    .navbar-content {
        padding: 0 5px;
    }

    .logo-area {
        padding-left: 5px;
    }

    .logo-img {
        height: 80px;
        left: -15px;
    }

    .menu-toggle {
        width: 25px;
        height: 18px;
    }

    .menu-toggle span {
        height: 2px;
    }

    .menu {
        top: 60px;
    }

    .menu ul {
        padding: 5px;
    }

    .menu li a {
        padding: 10px;
        font-size: 12px;
    }

    /* Ajustes para el carrusel en celulares pequeños */
    .carousel-container {
        height: 40vh;
    }

    .carousel-title {
        padding: 10px;
    }

    .carousel-title h1 {
        font-size: 1.5rem;
    }

    .carousel-title p {
        font-size: 0.8rem;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    /* Ajustes para las secciones de contenido */
    .convivencia-section,
    .noticias-section,
    .galeria-section,
    .directivos-section,
    .tecnicas-section,
    .pqr-section {
        padding: 20px 10px;
    }

    .convivencia-content,
    .noticias-content,
    .galeria-header,
    .directivos-header,
    .tecnicas-header,
    .pqr-container {
        padding: 15px;
    }

    .convivencia-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .convivencia-btn {
        width: 100%;
        padding: 12px;
        font-size: 12px;
    }

    .noticias-img-area {
        margin-top: 20px;
    }

    .noticias-img {
        max-width: 100%;
        height: auto;
    }

    .noticias-btn {
        padding: 10px 15px;
        font-size: 12px;
    }

    .galeria-carrusel-container {
        margin: 15px 0;
    }

    .galeria-img {
        height: 200px;
    }

    .galeria-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .directivo-card {
        width: 100%;
        margin: 10px 0;
    }

    .directivo-img {
        height: 200px;
    }

    .tecnica-block {
        width: 100%;
        margin: 10px 0;
    }

    .tecnica-img {
        height: 180px;
    }

    .tecnica-info h3 {
        font-size: 1.1rem;
    }

    .tecnica-info p {
        font-size: 0.9rem;
    }

    .tecnica-more-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    /* Ajustes para el formulario PQR */
    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .form-group {
        width: 100%;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 12px;
    }

    .submit-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Ajustes para tablets */
@media (min-width: 481px) and (max-width: 900px) {
    .navbar-content {
        padding: 0 15px;
    }

    .logo-area {
        padding-left: 15px;
    }

    .logo-img {
        height: 90px;
    }

    .menu li a {
        font-size: 13px;
    }

    .carousel-container {
        height: 45vh;
    }

    .carousel-title h1 {
        font-size: 1.7rem;
    }

    .carousel-title p {
        font-size: 0.85rem;
    }

    .convivencia-buttons {
        flex-wrap: wrap;
        gap: 15px;
    }

    .convivencia-btn {
        flex: 1 1 calc(50% - 15px);
        min-width: 200px;
    }

    .directivo-card,
    .tecnica-block {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Ajustes base para móviles: hasta 900px */
@media (max-width: 900px) {
    body {
        overflow-x: hidden; /* Previene el scroll horizontal */
    }

    .navbar {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px 15px;
        box-sizing: border-box;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 100px;
    }

    .navbar-content {
        display: flex;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        min-height: auto;
        position: relative;
        justify-content: space-between;
        align-items: center;
    }

    .logo-area {
        height: auto;
        display: flex;
        align-items: center;
        padding: 0;
        margin: 0;
        position: relative;
        z-index: 1001;
        margin-top: 25px;
    }

    .logo-img {
        width: auto;
        height: 50px;
        object-fit: contain;
        margin: 0;
        position: static;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        width: 30px;
        height: 22px;
        justify-content: space-between;
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 1002;
        margin-left: auto;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #000;
        transition: all 0.3s ease;
        border-radius: 3px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    .menu {
        position: fixed; /* Posiciona fijo a la ventana */
        top: 60px; /* Debajo de la cabecera */
        left: -100vw; /* Oculto por defecto, usar 100vw para todo el ancho del viewport */
        width: 100vw; /* Usar 100vw para asegurar el ancho completo del viewport */
        height: calc(100vh - 60px);
        background: #fff;
        transition: left 0.3s ease; /* Transición para mostrar/ocultar */
        overflow-y: auto;
        padding: 20px 0;
        margin: 0;
        z-index: 999; /* Asegura que esté debajo del toggle y logo */
        box-sizing: border-box; /* Incluir padding en el ancho */
    }

    .menu.active {
        left: 0; /* Muestra el menú */
    }

    .menu ul {
        padding: 0;
        margin: 0;
        flex-direction: column;
        display: block;
    }

    .menu li {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .menu li a {
        padding: 15px 20px;
        font-size: 16px;
        display: block;
        color: #000;
        text-decoration: none;
        transition: background 0.3s ease;
    }

    .menu li a:hover {
        background: #f0f0f0;
    }

    .menu li.sub-menu > a {
        position: relative;
    }

    .menu li.sub-menu > a:after {
        content: '+';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
    }

    .menu li.sub-menu.active > a:after {
        content: '-';
    }

    .menu li.sub-menu ul {
        display: none;
        background: #f8f8f8;
        padding-left: 20px;
    }

    .menu li.sub-menu.active ul {
        display: block;
    }

    .menu li.sub-menu ul li a {
        padding-left: 40px;
    }

    /* Asegura que el contenido principal no esté oculto por la cabecera fija */
    main {
        padding-top: 60px; /* Añade padding igual a la altura de la cabecera */
    }

    /* Ajustes del carrusel para móviles */
    .carousel-container {
        margin-top: 0; /* Reset margin-top */
        height: 40vh;
    }

    .carousel-slide {
        height: 100%;
    }

    .carousel-img {
        height: 100%;
        object-fit: cover;
    }

    .carousel-title {
        padding: 15px;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    .carousel-title h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .carousel-title p {
        font-size: 0.9rem;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        background: rgba(255,255,255,0.8);
    }
}

/* Ajustes específicos para teléfonos pequeños: hasta 480px */
@media (max-width: 480px) {
    .navbar {
        padding: 0 10px;
        min-height: 50px;
    }

    .logo-area {
        height: auto;
    }

    .logo-img {
        height: 40px;
    }

    .menu-toggle {
        width: 25px;
        height: 18px;
    }

    .menu-toggle span {
        height: 2px;
    }

    .menu {
        top: 50px;
        height: calc(100vh - 50px);
    }

    .menu li a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .menu li.sub-menu ul li a {
        padding-left: 30px;
    }

    main {
        padding-top: 50px;
    }

    .carousel-container {
        height: 35vh;
    }

    .carousel-title {
        padding: 12px;
        width: 95%;
    }

    .carousel-title h1 {
        font-size: 1.3rem;
    }

    .carousel-title p {
        font-size: 0.8rem;
    }

    .carousel-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    /* Ajustes para secciones de contenido en teléfonos pequeños */
    .convivencia-section,
    .noticias-section,
    .galeria-section,
    .directivos-section,
    .tecnicas-section,
    .pqr-section {
        padding: 15px 10px;
    }

    .convivencia-info h2,
    .noticias-info h2,
    .galeria-header h2,
    .directivos-header h2,
    .tecnicas-header h2,
    .pqr-container h2 {
        font-size: 1.5rem;
    }

     .convivencia-desc,
     .noticias-desc,
     .galeria-desc,
     .tecnicas-header p,
     .pqr-container form label,
     .form-group input,
     .form-group select,
     .form-group textarea {
        font-size: 0.9rem;
     }

    .convivencia-btn,
    .noticias-btn,
    .tecnica-more-btn,
    .submit-btn {
        font-size: 12px;
        padding: 10px;
    }

    .directivo-card,
    .tecnica-block {
         max-width: none;
         width: 100%;
         margin: 10px 0;
    }

    .directivo-img,
    .tecnica-img {
        height: auto;
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .form-group {
        width: 100%;
    }
}

/* Ajustes para tablets: 481px a 900px */
@media (min-width: 481px) and (max-width: 900px) {
     .navbar {
        padding: 0 20px;
        min-height: 70px;
    }

    .logo-area {
        height: auto;
    }

     .logo-img {
        height: 60px;
    }

    .menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .menu li a {
        font-size: 15px;
        padding: 18px 25px;
    }

    .menu li.sub-menu > a:after {
        right: 25px;
    }

    .menu li.sub-menu ul {
        padding-left: 25px;
    }

    .menu li.sub-menu ul li a {
        padding-left: 50px;
    }

    main {
        padding-top: 70px;
    }

     .carousel-container {
        height: 50vh;
    }

    /* Ajustes para secciones de contenido en tablets */
    .convivencia-content,
    .noticias-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .convivencia-info,
    .noticias-info {
        flex: 1 1 calc(50% - 10px);
        min-width: 300px;
    }

    .convivencia-img-area,
    .noticias-img-area {
         flex: 1 1 calc(50% - 10px);
        min-width: 300px;
    }

    .directivos-container,
    .tecnicas-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .directivo-card,
    .tecnica-block {
        flex: 1 1 calc(50% - 10px);
        max-width: 350px;
    }

     .form-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
     }

    .form-group {
        flex: 1 1 calc(33% - 14px);
        min-width: 200px;
    }

    .form-group.full-width {
        flex-basis: 100%;
    }
}

