/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
}

/* Fuente principal para títulos y elementos destacados */
h1, h2, h3, h4, h5, h6,
.copilli-title,
.copilli-subtitle,
.vmv-card h3,
.servicios-title,
.historia-text h3,
.main-carousel-slide h3,
.otros-servicios-title,
.servicio-principal-title,
.metodo-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

/* Header sticky */
#header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Línea blanca superior */
.linea-blanca {
    width: 100%;
    height: 20px;
    background: rgb(212, 175, 55);
}

#cabecera {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    #cabecera {
        height: 150px;
    }
}

@media (max-width: 480px) {
    #cabecera {
        height: 120px;
    }
}

/* Navegación */
nav {
    width: 100%;
    background: rgb(212, 175, 55);
    padding: 1rem 2rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    color: #2f7f66;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4CAF50;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-right: auto;
}

/* Contenido de prueba */
.contenido {
    padding: 1rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contenido {
        padding: 1rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .contenido {
        padding: 1rem 1rem 1.5rem;
    }
}

.seccion h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.seccion p {
    line-height: 1.6;
    color: #555;
}

/* Sección de servicios con margen inferior para evitar solapamiento */
#servicios {
    margin-bottom: 4rem;
    padding-bottom: 0;
    margin-top: 0;
    padding-top: 0;
}

/* Barra separadora entre título y plumas */
.servicios-separator {
    width: 80%;
    max-width: 600px;
    height: 3px;
    background: linear-gradient(90deg, #276c5b 0%, #d4af37 50%, #276c5b 100%);
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}

.copilli-container {
    margin-top: 0;
}

/* Diseño responsive */
@media (max-width: 1024px) {
    nav ul {
        gap: 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.5rem 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 0.8rem;
        font-size: 0.9rem;
    }

    nav ul li a {
        font-size: 0.95rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    #header {
        height: auto;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.5rem 0.5rem;
    }

    nav ul {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    nav ul li a {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }
}

/* NUEVA SECCIÓN: Visión, Misión y Valores */
.vmv-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 1rem 0;
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Clase que se agrega cuando el elemento es visible */
.vmv-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.vmv-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 500px;
}

.vmv-card:nth-child(1),
.vmv-card:nth-child(2) {
    justify-content: flex-start;
}

.vmv-card:nth-child(1) .vmv-card-content,
.vmv-card:nth-child(2) .vmv-card-content {
    margin-top: auto;
    padding-bottom: 2rem;
}

/* Animación de entrada para cada card con delay */
.vmv-container.visible .vmv-card:nth-child(1) {
    animation: slideUp 0.6s ease forwards 0.2s;
}

.vmv-container.visible .vmv-card:nth-child(2) {
    animation: slideUp 0.6s ease forwards 0.4s;
}

.vmv-container.visible .vmv-card:nth-child(3) {
    animation: slideUp 0.6s ease forwards 0.6s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vmv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgb(212, 175, 55), #2f7f66);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

/* HOVER con el mouse */
.vmv-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: rgb(212, 175, 55);
}

.vmv-card:hover::before {
    transform: scaleX(1);
}

.vmv-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.4s ease;
}

.vmv-card:hover .vmv-icon {
    transform: scale(1.2) rotate(5deg);
}

.vmv-card h3 {
    color: #2f7f66;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    text-align: center;
}

.vmv-card:hover h3 {
    color: rgb(212, 175, 55);
}

.vmv-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.vmv-card:nth-child(1) .vmv-card-content,
.vmv-card:nth-child(2) .vmv-card-content {
    margin-top: auto;
    padding-top: 2rem;
}

.vmv-card p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-align: justify;
    max-width: 100%;
    margin: 0;
}

.vmv-card:hover p {
    color: #333;
}

.vmv-card img {
    display: block;
    margin: 0 auto 1rem auto;
    max-width: 120px;
    height: auto;
    transition: transform 0.4s ease;
}

.vmv-card:hover img {
    transform: scale(1.2) rotate(5deg);
}

/* Responsive para VMV */
@media (max-width: 1024px) {
    .vmv-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 100%;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .vmv-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vmv-card {
        padding: 2rem;
    }

    .vmv-card h3 {
        font-size: 1.5rem;
    }

    .vmv-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .vmv-card {
        padding: 1.5rem;
    }

    .vmv-card h3 {
        font-size: 1.3rem;
    }

    .vmv-card img {
        max-width: 100px;
    }
}

 /* ESTILOS DEL COPILLI */
.copilli-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 60px rgba(212, 175, 55, 0.9);
    }
}

.logo-trauma {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgb(212, 175, 55), #d4af37);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    font-size: 3rem;
}

/* Centro del copilli */
.centro-copilli {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgb(212, 175, 55), #d4af37);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    border: 4px solid #fff;
    font-size: 3rem;
    margin-top: 30px;
}

.texto-bajo {
    position: absolute;
    bottom: -130px; /* ajusta la distancia debajo de la imagen */
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 1.5rem;
    color: #2c3e50;
    text-align: center;
    width: 100%;
    line-height: 1.4;
    z-index: 200; /* aseguramos que quede encima de otros elementos */
    transition: all 0.3s ease;
}

.texto-bajo:hover {
    color: #2f7f66;
    transform: translateX(-50%) scale(1.05);
    text-shadow: 0 2px 4px rgba(39, 108, 91, 0.2);
}

/* MODAL */
.historia-intro {
    background: #f5f5f5;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.historia-intro button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    background: #d4af37;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.historia-intro button:hover {
    background: #c39b2c;
}

/* MODAL */
.historia-intro {
    background: #f5f5f5;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.historia-intro button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    background: #d4af37;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.historia-intro button:hover {
    background: #c39b2c;
}

/* MODAL */
/* MODAL */
.modal {
    display: none; /* ❌ importante: siempre oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

/* Modal contenido */
.modal-contenido {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: scale(0.5);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s ease;
}

/* Cuando se abre */
.modal.abierto {
    display: flex; /* ✅ solo se muestra cuando JS agrega esta clase */
}
.modal.abierto .modal-contenido {
    transform: scale(1);
    opacity: 1;
}
.carousel-container {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 3rem auto;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    box-sizing: border-box;
}

.texto-slide {
    flex: 1;
    font-size: 1.1rem;
    color: #333;
}

.carousel-slide img {
    flex: 1;
    max-width: 400px;
    border-radius: 10px;
}

/* Controles */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-container:hover .carousel-controls {
    opacity: 1;
}

.carousel-controls button {
    pointer-events: all;
    background-color: rgba(212,175,55,0.8);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1.5rem;
    cursor: pointer;
}

.carousel-controls button:hover {
    background-color: rgba(212,175,55,1);
}

/* Nuevo carrusel principal de cards */
.main-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    margin-bottom: 3rem;
}

.main-carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.main-carousel-slide {
    min-width: 100%;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 400px;
    box-sizing: border-box;
}

.main-carousel-slide:has(.video-container) {
    padding: 0;
    border-radius: 0;
    min-height: 500px;
}

/* Estilos específicos para el slide de historia */
.main-carousel-slide.historia-slide {
    background: linear-gradient(135deg, rgba(173, 216, 230, 0.5) 0%, rgba(144, 238, 144, 0.5) 50%, rgba(173, 216, 230, 0.5) 100%);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
}

.historia-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.historia-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.6;
}

.historia-text {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-width: 600px;
}

.historia-text h3 {
    color: #2f7f66;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.historia-text p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.main-carousel-slide:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: rgb(212, 175, 55);
}

.main-carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, rgb(212, 175, 55), #2f7f66);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.main-carousel-slide:hover::before {
    transform: scaleX(1);
}

.main-carousel-slide h3 {
    color: #2f7f66;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.main-carousel-slide:hover h3 {
    color: rgb(212, 175, 55);
}

.main-carousel-slide p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.main-carousel-slide .video-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #999;
    font-size: 3rem;
}

.main-carousel-slide .video-container {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
}

.main-carousel-slide .carousel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Estilos para el slide de COPILLI */
.main-carousel-slide.copilli-slide {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.main-carousel-slide.image-slide {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 500px;
}

.main-carousel-slide .image-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.main-carousel-slide .main-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.main-carousel-slide .image-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    max-width: 600px;
}

.main-carousel-slide .image-overlay h3 {
    color: #2f7f66;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.main-carousel-slide .image-overlay p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.copilli-info {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.copilli-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

.copilli-info-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.copilli-title {
    font-size: 3rem;
    color: #2f7f66;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: center;
}

.copilli-subtitle {
    font-size: 1.3rem;
    color: #d4af37;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
    font-style: italic;
}

.copilli-content {
    text-align: left;
    line-height: 1.8;
}

.copilli-content p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.copilli-content p:last-child {
    margin-bottom: 0;
}

.copilli-content strong {
    color: #2f7f66;
    font-weight: 600;
}

@media (max-width: 768px) {
    .copilli-title {
        font-size: 2.2rem;
    }
    
    .copilli-subtitle {
        font-size: 1.1rem;
    }
    
    .copilli-content p {
        font-size: 1rem;
    }
    
    .copilli-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .copilli-title {
        font-size: 1.8rem;
    }
    
    .copilli-subtitle {
        font-size: 1rem;
    }
    
    .copilli-content p {
        font-size: 0.95rem;
    }
    
    .copilli-info {
        padding: 1rem;
    }
}

.main-carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0 2rem;
}

.main-carousel-container:hover .main-carousel-controls {
    opacity: 1;
}

.main-carousel-controls button {
    pointer-events: all;
    background-color: rgba(212,175,55,0.8);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.main-carousel-controls button:hover {
    background-color: rgba(212,175,55,1);
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cerrar-modal:hover {
    background-color: rgba(0,0,0,0.1);
    color: #d4af37;
}

/* Ajustes para el modal del carrusel de historia */
.modal .modal-contenido {
    max-width: 1000px;
    padding: 3rem;
}

.modal .carousel-container {
    max-width: 100%;
    margin: 0;
}

/* Sección de Descripción Copilli */
.copilli-description {
    background: linear-gradient(135deg, rgba(39, 108, 91, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    padding: 4rem 2rem;
    margin: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.copilli-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #276c5b 0%, #d4af37 50%, #276c5b 100%);
}

.copilli-description-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.copilli-description-text {
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 6rem;
}

.description-paragraph {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    max-width: 100%;
}

.description-paragraph:last-child {
    margin-bottom: 0;
}

.description-paragraph .highlight {
    color: #2f7f66;
    font-weight: 600;
    position: relative;
    padding: 0 2px;
}

.description-paragraph .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.4) 0%, rgba(212, 175, 55, 0.2) 100%);
    border-radius: 2px;
}

.copilli-description-decoration {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 3rem;
    opacity: 0.3;
}

.decoration-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #276c5b 0%, #d4af37 100%);
    animation: pulse 2s ease-in-out infinite;
}

.decoration-circle:nth-child(2) {
    animation-delay: 0.3s;
}

.decoration-circle:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .main-carousel-slide {
        min-width: 100%;
        padding: 2rem 1.5rem;
        min-height: 350px;
    }
    
    .main-carousel-container {
        padding: 1rem 0;
    }
    
    .main-carousel-controls {
        padding: 0 1rem;
    }

    .copilli-description {
        padding: 4rem 2rem;
    }

    .copilli-description-text {
        max-width: 100%;
        padding: 0 2rem;
    }

    .description-paragraph {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .copilli-description-decoration {
        margin-top: 2rem;
    }

    .main-carousel-slide:has(.video-container) {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .copilli-description {
        padding: 3rem 1.5rem;
    }

    .copilli-description-text {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .description-paragraph {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .main-carousel-slide .carousel-video {
        height: 100%;
    }

    .main-carousel-slide:has(.video-container) {
        min-height: 250px;
    }
}

/* Footer */
#footer {
    background: linear-gradient(135deg, #2f7f66 0%, #276c5b 100%);
    color: #fff;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: rgb(212, 175, 55);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: #e0e0e0;
    line-height: 1.8;
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    filter: grayscale(100%);
    opacity: 0.8;
    position: relative;
}

.social-link:hover {
    background: rgb(212, 175, 55);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    filter: grayscale(0%);
    opacity: 1;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Estilos para iconos Font Awesome en el footer */
.social-link.icon {
    font-size: 1.2rem;
}

.social-link .label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    #footer {
        padding: 1.5rem 1rem 1rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
    }
}

/* Botón de scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #276c5b 0%, #d4af37 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(39, 108, 91, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(39, 108, 91, 0.5);
    background: linear-gradient(135deg, #d4af37 0%, #276c5b 100%);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Colores de la Paleta: 
   Verde oscuro: #276c5b 
   Dorado: #d4af37 
*/

.copilli-container {
    position: relative; 
    width: 800px; /* Aumentar el ancho para las nuevas plumas */
    height: 500px; /* Aumentar la altura */
    margin: 0 auto; 
    margin-top: 0.5rem;
    overflow: visible; 
}

/* Centro del copilli (Círculo y Texto) */
.centro-copilli {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
}

.logo-trauma {
    width: 170px; 
    height: 170px;
    border-radius: 50%;
    background-color: #276c5b; 
    object-fit: cover;
    margin-bottom: 0;
    display: block;
}

.texto-bajo {
    color: #276c5b; 
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    margin-top: 0.5rem;
    position: relative;
    width: 100%;
    z-index: 200;
}

/* Base de las plumas */
.pluma {
    position: absolute;
    width: 140px; 
    height: 260px; 
    cursor: pointer;
    transform-origin: bottom center;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    left: 50%;
    bottom: 60px; 
    transform: translateX(-50%);
}

.pluma-contenido {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px; 
}

/* Forma de pluma con degradado VERDE-DORADO */
.pluma-forma {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; 
    height: 240px; 
    border-radius: 40px 40px 10px 10px;
    opacity: 1; 
    filter: none;
    /* CAMBIO CLAVE: Degradado de Verde Oscuro a Dorado */
    background: linear-gradient(180deg, #276c5b 0%, #d4af37 100%); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
    transition: all 0.4s ease; 
    animation: flotar 4s ease-in-out infinite;
}

@keyframes flotar {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Texto de la especialidad (Verde oscuro) */
.pluma-texto {
    position: relative;
    z-index: 10;
    color: #FFF; /* Texto blanco para contraste con el degradado verde-dorado */
    font-weight: bold;
    font-size: 0.75rem; 
    text-align: center;
    padding: 8px 3px; 
    line-height: 1.3;
    transition: all 0.3s ease;
    
    writing-mode: vertical-rl; 
    text-orientation: mixed; 
    letter-spacing: 2px;
}

/* Hover effects - Mejorado para todas las plumas */
.pluma:hover {
    z-index: 50 !important; /* Asegura que la pluma esté por encima de las demás */
}

/* Aplicar elevación en hover manteniendo la rotación original */
.pluma:nth-child(2):hover {
    transform: translateX(-50%) rotate(-80deg) translateY(-45px) scale(1.1);
}
.pluma:nth-child(3):hover {
    transform: translateX(-50%) rotate(-60deg) translateY(-50px) scale(1.1);
}
.pluma:nth-child(4):hover {
    transform: translateX(-50%) rotate(-40deg) translateY(-40px) scale(1.1);
}
.pluma:nth-child(5):hover {
    transform: translateX(-50%) rotate(-20deg) translateY(-35px) scale(1.1);
}
.pluma:nth-child(6):hover {
    transform: translateX(-50%) rotate(0deg) translateY(-40px) scale(1.1);
}
.pluma:nth-child(7):hover {
    transform: translateX(-50%) rotate(20deg) translateY(-35px) scale(1.1);
}
.pluma:nth-child(8):hover {
    transform: translateX(-50%) rotate(40deg) translateY(-30px) scale(1.1);
}
.pluma:nth-child(9):hover {
    transform: translateX(-50%) rotate(60deg) translateY(-20px) scale(1.1);
}
.pluma:nth-child(10):hover {
    transform: translateX(-50%) rotate(80deg) translateY(-15px) scale(1.1);
}
.pluma:nth-child(11):hover {
    transform: translateX(-50%) rotate(100deg) translateY(-15px) scale(1.1);
}

.pluma:hover .pluma-forma {
    opacity: 1;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    animation-play-state: paused;
}

.pluma:hover .pluma-texto {
    transform: scale(1.15);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 📐 POSICIONAMIENTO DE LAS 10 PLUMAS 📐 */
/* El rango total de rotación se distribuye entre 10 plumas */

/* Plumas de la izquierda (5 plumas) */
.pluma:nth-child(2) {
    transform: translateX(-50%) rotate(-80deg) translateY(-5px); /* Más abierta */
    z-index: 10;
}
.pluma:nth-child(3) {
    transform: translateX(-50%) rotate(-60deg) translateY(-10px);
    z-index: 20;
}
.pluma:nth-child(4) {
    transform: translateX(-50%) rotate(-40deg) translateY(-20px);
    z-index: 30;
}
.pluma:nth-child(5) { /* Nueva posición para la 4ta pluma del abanico */
    transform: translateX(-50%) rotate(-20deg) translateY(-25px);
    z-index: 40;
}
.pluma:nth-child(6) { /* Nueva posición para la 5ta pluma del abanico (centro-izquierda) */
    transform: translateX(-50%) rotate(0deg) translateY(-30px); /* Centro */
    z-index: 50;
}

/* Plumas de la derecha (4 plumas) */
/* Empezamos en nth-child(7) porque ya tenemos 1 (centro-copilli) + 5 plumas = 6.
   La siguiente pluma es la nth-child(7). */
.pluma:nth-child(7) {
    transform: translateX(-50%) rotate(20deg) translateY(-25px);
    z-index: 40;
}
.pluma:nth-child(8) {
    transform: translateX(-50%) rotate(40deg) translateY(-20px);
    z-index: 30;
}
.pluma:nth-child(9) {
    transform: translateX(-50%) rotate(60deg) translateY(-10px);
    z-index: 20;
}
.pluma:nth-child(10) { /* Última pluma a la derecha */
    transform: translateX(-50%) rotate(80deg) translateY(-5px); /* Más abierta */
    z-index: 10;
}
.pluma:nth-child(11) { /* Nueva pluma adicional a la derecha */
    transform: translateX(-50%) rotate(100deg) translateY(-5px);
    z-index: 10;
}


/* ANIMACIÓN DE ENTRADA (Ajustada para 10 plumas) */
@keyframes entradaPluma {
    from {
        opacity: 0;
        transform: translateX(-50%) rotate(var(--rotate)) translateY(0) scale(0.7); 
    }
    to {
        opacity: 1;
        transform: translateX(-50%) rotate(var(--rotate)) translateY(var(--translateY)) scale(1); 
    }
}

.pluma:nth-child(2) {
    --rotate: -80deg; --translateY: -5px; animation-delay: 0.1s;
}
.pluma:nth-child(3) {
    --rotate: -60deg; --translateY: -10px; animation-delay: 0.2s;
}
.pluma:nth-child(4) {
    --rotate: -40deg; --translateY: -20px; animation-delay: 0.3s;
}
.pluma:nth-child(5) {
    --rotate: -20deg; --translateY: -25px; animation-delay: 0.4s;
}
.pluma:nth-child(6) {
    --rotate: 0deg; --translateY: -30px; animation-delay: 0.5s;
}
.pluma:nth-child(7) {
    --rotate: 20deg; --translateY: -25px; animation-delay: 0.6s;
}
.pluma:nth-child(8) {
    --rotate: 40deg; --translateY: -20px; animation-delay: 0.7s;
}
.pluma:nth-child(9) {
    --rotate: 60deg; --translateY: -10px; animation-delay: 0.8s;
}
.pluma:nth-child(10) {
    --rotate: 80deg; --translateY: -5px; animation-delay: 0.9s;
}
.pluma:nth-child(11) {
    --rotate: 100deg; --translateY: -5px; animation-delay: 1.0s;
}

/* Responsive para copilli */
@media (max-width: 1024px) {
    .copilli-container {
        transform: scale(0.9);
    }
}

@media (max-width: 768px) {
    .copilli-container {
        width: 100%;
        height: 500px;
        transform: scale(0.75);
    }
    
    .pluma {
        width: 100px;
        height: 200px;
    }
    
    .pluma-forma {
        width: 60px;
        height: 180px;
    }
    
    .pluma-texto {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .copilli-container {
        height: 400px;
        transform: scale(0.65);
    }
    
    .pluma {
        width: 80px;
        height: 160px;
    }
    
    .pluma-forma {
        width: 50px;
        height: 140px;
    }
    
    .pluma-texto {
        font-size: 0.7rem;
    }

    #servicios h1 {
        font-size: 1.8rem;
    }
}