:root{
    --green:#066c57;
    --gold:#c9a76a;
    --muted:#e9f6f2;
}

.topbar{
    background:var(--green);
    color:white;
}

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

.hero{
    background:linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/landing/banner-landing.webp') center/cover no-repeat;
    color: #fff;
    padding: 5rem 0;
}

.hero .card-img{
    border-radius:1rem;
    max-width:100%;
    box-shadow:0 6px 20px rgba(0,0,0,0.5);
}

.section-team{
    background: linear-gradient(to bottom, var(--muted) 50%, white 50%);
    padding: 1rem 0;
    border-top:6px solid var(--gold);
}

.section-mision-vision{
    background:linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('../images/landing/mision-vision.webp') center/cover no-repeat;
    display: flex;
    min-height: 100vh;
}

.secction-footer{
    background: #036554;
}

.team-card{
    border-radius:1rem;
    padding:1.5rem;
    background:#fff;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

.team-avatar{
    width:150px;
    border-radius:50%;
    object-fit:cover;
    border:6px solid #fff;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

/* Swiper custom controls */
.swiper-button-custom{
    width:44px;
    height:44px;
    border-radius:50%;
    background:#ddd;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    color:#333;
}

.swiper-button-custom:hover{
    background:#ccc;
}

/* Sección Servicios */
.section-servicios{
    background: var(--muted);
    padding: 1rem 0;
}

.servicio-card{
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    min-height: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: min-height 0.3s ease;
}

.servicio-card.expanded{
    min-height: auto;
}

.servicio-card h5{
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.servicio-descripcion{
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.servicio-descripcion.collapsed{
    max-height: 60px;
}

.servicio-descripcion.expanded{
    max-height: none;
}

.servicio-card p{
    color: #6c757d;
    margin: 0;
}

.toggle-descripcion{
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 1rem;
}

.toggle-descripcion:hover{
    text-decoration: underline;
}

.leer-mas{
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.leer-mas:hover{
    text-decoration: underline;
}

.btn-agendar{
    background: var(--green);
    color: white;
    border: none;
    border-radius: 2rem;
    padding: 0.6rem 2.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.btn-agendar:hover{
    background: #055446;
    transform: translateY(-2px);
}

/* Sección Preguntas frecuentes */
.section-faq{
    background: #fff;
    padding: 1rem 0;
}

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

.faq-card{
    background: var(--muted);
    border-radius: 20px;
    padding: 2rem 2rem;
}

.faq-title{
    font-weight: 800;
    font-size: 2.25rem;
    line-height: 1.1;
    color: #3a3a3a;
}

.faq-title span{
    color: var(--green);
}

.faq-item{
    display:flex;
    gap:1rem;
    align-items:flex-start;
}

.faq-number{
    font-weight: 800;
    font-size: 2rem;
    color: #3a3a3a;
    line-height: 1;
    flex: 0 0 auto;
}

.faq-question{
    font-weight: 700;
    font-size: .95rem;
    color:#2d2d2d;
    margin-bottom:.25rem;
}

.faq-answer{
    color:#6c757d;
    font-size:.95rem;
}

/* Sección Mapa */
.section-mapa{
    background: #E6F5F0;
    padding: 1rem 0;
}

#map{
    width: 100%;
    height: 420px;
}

.image-container {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    gap: 3rem;
}

.content-box {
    background: rgba(45, 85, 80, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.content-box h2 {
    color: #d4af77;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.content-box p {
    color: #f5f5f5;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.content-box p:last-child {
    margin-bottom: 0;
}

.footer {
    background: #036554;
    padding: 40px 40px 30px;
    margin-top: auto;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

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

.logo-icon {
    display: flex;
    gap: 3px;
}

.line {
    width: 4px;
    height: 35px;
    background-color: white;
    transform: skewX(-20deg);
}

.logo-text {
    color: white;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 8px;
}

.logo-subtitle {
    color: white;
    font-size: 11px;
    letter-spacing: 4px;
    margin-top: -5px;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
}

.contact-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: opacity 0.3s, transform 0.3s;
}

.contact-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.fa{
    font-size: 1.5rem !important;
}

.social-links {
    display: flex;
    gap: 20px;
    font-size: 15px;
    align-items: center;
}

.social-item {
    color: white;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
}

.social-item:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

.social-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: white;
    font-size: 12px;
    line-height: 1.4;
}

.siguenos-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-bar {
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .mission-section {
        flex-direction: column;
        background: linear-gradient(to bottom, #1a1410 0%, #1a1410 40%, #2d5550 40%, #2d5550 100%);
    }

    .image-container {
        flex: 0 0 auto;
        min-height: 50vh;
    }

    .content-container {
        padding: 3rem 2rem;
    }

    .content-box h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px){
    .faq-card{
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-faq{
        padding: 3rem 0;
    }
    
    .faq-image{
        max-height: 360px;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .faq-card{
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        margin-top: -1.25rem;
    }
    
    .faq-title{
        font-size: 1.8rem;
    }

    .content-container {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .content-box {
        padding: 2rem;
    }

    .content-box h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .content-box p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .image-container {
        min-height: 40vh;
        padding: 1.5rem;
    }

    .footer {
        padding: 30px 20px 20px;
    }

    .contact-bar {
        gap: 25px;
        flex-direction: column;
    }

    .contact-item {
        width: 100%;
        max-width: 350px;
    }
    
    .logo-text {
        font-size: 24px;
        letter-spacing: 6px;
    }

    .social-links {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero{
        background: #01241e;
    }
    
    .hero .card-img{
        border-radius: 0;
        max-width:100%;
        box-shadow: none;
    }

    .content-container {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .content-box {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .content-box h2 {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .content-box p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .image-container {
        min-height: 35vh;
        padding: 1rem;
    }

    .logo-text {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .line {
        width: 3px;
        height: 28px;
    }

    .contact-item span {
        font-size: 13px;
    }
}

/* Sección Testimonios */
.section-testimonios {
    background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/landing/testimonios-bg.webp') center/cover no-repeat;
    padding: 4rem 0;
    position: relative;
    color: white;
}

.section-testimonios h2 {
    color: #C8AE80;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-testimonios .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonios-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonio-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin: 0 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 4px solid #f8f9fa;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonio-name {
    color: #333;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonio-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonio-author {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.testimonio-rating {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

.testimonio-rating i {
    color: #ffc107;
    font-size: 1.1rem;
}

.testimonio-rating .far {
    color: #e9ecef;
}

/* Navegación personalizada para testimonios */
.testimonios-button-prev,
.testimonios-button-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #333;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonios-button-prev:hover,
.testimonios-button-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonios-button-prev {
    left: 2px;
}

.testimonios-button-next {
    right: 2px;
}

.testimonios-button-prev:after,
.testimonios-button-next:after {
    font-size: 18px;
    font-weight: bold;
}

/* Responsive para testimonios */
@media (max-width: 992px) {
    .testimonios-button-prev {
        left: -15px;
    }
    
    .testimonios-button-next {
        right: -15px;
    }
    
    .testimonio-card {
        margin: 0 0.5rem;
        padding: 2rem 1.5rem;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .section-testimonios {
        padding: 3rem 0;
    }
    
    .section-testimonios h2 {
        font-size: 2rem;
    }
    
    .testimonios-button-prev,
    .testimonios-button-next {
        width: 45px;
        height: 45px;
    }
    
    .testimonios-button-prev {
        left: -10px;
    }
    
    .testimonios-button-next {
        right: -10px;
    }
    
    .testimonio-card {
        margin: 0 0.25rem;
        padding: 1.5rem 1rem;
        min-height: 280px;
    }
    
    .testimonio-avatar {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .testimonio-name {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .testimonio-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonios-button-prev,
    .testimonios-button-next {
        width: 40px;
        height: 40px;
    }
    
    .testimonios-button-prev {
        left: -5px;
    }
    
    .testimonios-button-next {
        right: -5px;
    }
    
    .testimonio-card {
        padding: 1.25rem 0.75rem;
        min-height: 260px;
    }
}

/* Sección de Videos */
.section-videos {
    background: #E9F6F2;
    padding: 4rem 0;
}

.videos-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.videos-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.videos-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.videos-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.videos-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.video-item {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
    align-items: center;
}

.video-item:hover {
    background-color: #f8f9fa;
}

.video-item:first-child {
    border-top: 1px solid #e0e0e0;
}

.video-thumbnail {
    position: relative;
    flex: 0 0 280px;
    height: 180px;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    flex: 1;
    padding: 1rem 1rem 1rem 0;
}

.video-date {
    color: #999;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.video-title {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.video-description {
    color: #6c757d;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive para videos */
@media (max-width: 768px) {
    .section-videos {
        padding: 3rem 0;
    }
    
    .videos-scroll-container {
        max-height: 500px;
    }
    
    .video-thumbnail {
        flex: 0 0 200px;
        height: 70px;
    }
    
    .video-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-videos {
        padding: 2rem 0;
    }
    
    .videos-scroll-container {
        max-height: 400px;
    }
    
    .video-thumbnail {
        flex: 0 0 140px;
        height: 60px;
    }
    
    .video-info {
        padding: 0.75rem 0.5rem 0.75rem 0;
    }
    
    .video-date {
        font-size: 0.7rem;
    }
    
    .video-title {
        font-size: 0.85rem;
    }
}
