* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for animations */
.header, .professional-modal, .service-item,
.professional-avatar, .service-arrow {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

:root {
    --primary-green: #2d7d32;
    --light-green: #4caf50;
    --dark-green: #1b5e20;
    --soft-gray: #f5f5f5;
    --medium-gray: #666;
    --dark-gray: #333;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    padding-top: 80px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px var(--shadow);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.logo img {
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-green);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    margin: 3px 0;
    transition: 0.3s;
}

/* Page Header */
.page-header {
    height: 100vh;
    background-image: url('../img/servicios.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--white);
}

.services-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.services-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.services-intro p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Featured Service - Industria Petrolera y Minera */
.service-item.featured {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(27, 94, 32, 0.1));
    box-shadow: 0 10px 30px rgba(45, 125, 50, 0.2);
    animation: featured-pulse 3s ease-in-out infinite;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

.service-item.featured .service-header {
    background: transparent;
    color: var(--dark-gray);
    border-left: 4px solid var(--primary-green);
    position: relative;
    overflow: hidden;
}

.service-item.featured .service-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: featured-shine 3s ease-in-out infinite;
}

.service-item.featured .service-header:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.service-item.featured .service-title {
    color: var(--primary-green);
    font-weight: 700;
}

.service-item.featured .service-icon {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: icon-bounce 2s ease-in-out infinite;
}

.service-item.featured .service-icon i {
    color: var(--dark-gray);
    font-weight: 900;
}

.service-item.featured .service-arrow {
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* Animations for Featured Service */
@keyframes featured-pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(45, 125, 50, 0.2);
    }
    50% {
        box-shadow: 0 15px 40px rgba(45, 125, 50, 0.3);
    }
}

@keyframes featured-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes icon-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Service Menu Item */
.service-item {
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
    background: var(--white);
}

.service-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-green);
}

.service-header:hover {
    background: var(--soft-gray);
}

.service-header.active {
    background: var(--primary-green);
    color: white;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.service-header.active .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

/* Drone Icon Specific Styles */
.drone-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green)) !important;
}

.drone-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Escadril Link Styles */
.escadril-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.escadril-link:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

/* Professionals Container for multiple profiles */
.professionals-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.professionals-container .professional-profile {
    flex: 0 1 auto;
    min-width: 200px;
}

/* Website link in modal */
.website-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid var(--primary-green);
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
}

.website-link:hover {
    background: var(--primary-green);
    color: white;
    text-decoration: none;
}

/* Special Company Sections */
.qualitat-section, .escadril-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
}

.qualitat-section h5, .escadril-section h5 {
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qualitat-content, .escadril-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.qualitat-logo, .escadril-logo {
    flex-shrink: 0;
}

.qualitat-logo img, .escadril-logo img {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.qualitat-logo:hover img, .escadril-logo:hover img {
    transform: scale(1.05);
}

.qualitat-services ul, .escadril-services ul {
    margin: 0.5rem 0 0 0;
    padding-left: 1rem;
}

.qualitat-services ul li, .escadril-services ul li {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #555;
}

.service-title {
    flex: 1;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.service-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.service-header.active .service-arrow {
    transform: rotate(180deg);
}

/* Service Content */
.service-content {
    display: none;
    padding: 2rem;
    background: var(--soft-gray);
    border-top: 1px solid #e0e0e0;
}

.service-content.active {
    display: block;
}

.service-details {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    align-items: start;
}

.service-description {
    flex: 1;
}

.service-image {
    grid-column: 1 / -1;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(45, 125, 50, 0.2);
    margin-top: 1.5rem;
}

.service-image img {
    width: 100%;
    height: 200%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image:hover img {
    transform: scale(1.1);
}

/* Ajustes específicos por servicio */
.service-item:nth-child(3) .service-image img {
    object-position: center bottom;
}

.service-item:nth-child(4) .service-image img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.service-item:nth-child(7) .service-image img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Ajustes para desktop */
.service-item:nth-child(2) .service-image img {
    object-position: center -100px; /* Servicios Aéreos - más arriba */
}

.service-item:nth-child(5) .service-image img {
    object-position: center -140px; /* Geología - más arriba */
}

.service-item:nth-child(8) .service-image img {
    object-position: left -100px; /* Derecho Minero y Legal - más arriba e izquierda */
}

.service-item:nth-child(10) .service-image img {
    object-position: center -100px; /* Capacitaciones - más arriba */
}

.service-description h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-description p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.service-features i {
    color: var(--primary-green);
    margin-right: 0.8rem;
    font-size: 1rem;
}

/* Service Categories Styles */
.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.category-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.category-section.highlight {
    border-left-color: var(--light-green);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(76, 175, 80, 0.02));
}

.category-title {
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title i {
    font-size: 1.2rem;
}

.category-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.category-features li:last-child {
    margin-bottom: 0;
}

.category-features i {
    color: var(--primary-green);
    margin-right: 0.8rem;
    font-size: 0.9rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Professional Profile */
.professional-profile {
    text-align: center;
}

.professional-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(45, 125, 50, 0.3);
    position: relative;
    overflow: hidden;
}

.professional-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 1;
}

.professional-avatar::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0;
    font-weight: 0;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.professional-avatar:hover::before {
    transform: scale(1);
}

.professional-avatar:hover::after {
    opacity: 1;
    bottom: -15px;
}

.professional-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(45, 125, 50, 0.4);
}

.professional-avatar i {
    font-size: 3rem;
    color: white;
    z-index: 0;
    position: relative;
}

.professional-name {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.professional-title {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.click-hint {
    color: var(--primary-green);
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

/* Modal for Professional CV */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.modal-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-avatar i {
    font-size: 3rem;
    color: white;
}

.modal-body {
    padding: 2rem;
}

.cv-section {
    margin-bottom: 2rem;
}

.cv-section h4 {
    color: var(--primary-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 0.5rem;
}

.cv-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--soft-gray);
    border-radius: 10px;
}

.cv-item h5 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.cv-item p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin: 0;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    background: var(--soft-gray);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--medium-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--dark-green);
    transform: translateY(-3px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.cta-button.secondary:hover {
    background: var(--primary-green);
    color: white;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left {
    flex: 0 0 auto;
}

.footer-right {
    flex: 1;
    text-align: right;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-right {
        text-align: center;
        order: 1;
    }

    .footer-left {
        order: 2;
    }
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Animations */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }
    .nav-menu.active {
        left: 0;
    }

    /* Page header responsive */
    .page-header {
        height: 80vh;
        padding-top: 10vh;
        background-position: 35% center;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    /* Services responsive */
    .services-intro h2 {
        font-size: 2rem;
    }

    .service-details {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center;
    }

    .service-image {
        order: 3;
        height: 200px;
        margin: 1rem auto 0;
        max-width: 100%;
    }

    /* Ajustes específicos de posición para móviles */
    .service-item:nth-child(2) .service-image img {
        object-position: center -100px; /* Servicios Aéreos - más arriba */
    }

    .service-item:nth-child(3) .service-image img {
        object-position: -150px center; /* Servicios de Drones - un poco a la derecha */
    }

    .service-item:nth-child(5) .service-image img {
        object-position: center -90px; /* Geología - más arriba */
    }

    .service-item:nth-child(8) .service-image img {
        object-position: -178px -40px; /* Derecho Minero y Legal - más arriba izquierda */
    }

    .service-item:nth-child(9) .service-image img {
        object-position: -260px center; /* Seguimiento Industrial - más a la izquierda */
    }

    .service-description {
        order: 1;
    }

    .professional-profile {
        order: 2;
        margin-bottom: 1rem;
    }

    .professional-avatar {
        width: 120px;
        height: 120px;
    }

    .professional-avatar i {
        font-size: 2.5rem;
    }

    .service-header {
        padding: 1.2rem 1.5rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-features li {
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .cv-section h4 {
        font-size: 1.2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .nav {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .page-header {
        padding: 3rem 0 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .services {
        padding: 4rem 0;
    }

    .service-header {
        padding: 1rem;
    }

    .service-title {
        font-size: 1rem;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
    }

    .service-icon i {
        font-size: 1.2rem;
    }

    .service-content {
        padding: 1rem;
    }

    .professional-avatar {
        width: 100px;
        height: 100px;
    }

    .professional-avatar i {
        font-size: 2rem;
    }

    .professional-name {
        font-size: 0.95rem;
    }

    .professional-title {
        font-size: 0.85rem;
    }

    .click-hint {
        font-size: 0.75rem;
    }

    .modal-content {
        width: 98%;
        margin: 2% auto;
        border-radius: 15px;
    }

    .modal-header {
        padding: 1rem;
        border-radius: 15px 15px 0 0;
    }

    .modal-avatar {
        width: 80px;
        height: 80px;
    }

    .modal-avatar i {
        font-size: 2rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .cv-section {
        margin-bottom: 1.5rem;
    }

    .cv-section h4 {
        font-size: 1.1rem;
    }

    .cv-item {
        padding: 0.8rem;
    }

    .cv-item h5 {
        font-size: 0.95rem;
    }

    .cv-item p {
        font-size: 0.85rem;
    }

    .close {
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

/* Additional animations */
.service-item {
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(45, 125, 50, 0.15);
}

.modal-content {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Loading animation for professional avatars */
.professional-avatar {
    position: relative;
    overflow: hidden;
}

.professional-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.professional-avatar:hover::before {
    left: 100%;
}

/* Professionals Dropdown Styles */
.professionals-dropdown {
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.professional-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.professional-item:last-child {
    border-bottom: none;
}

.professional-item:hover {
    background: var(--primary-green);
    color: white;
    transform: translateX(5px);
}

.professional-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.professional-item:hover i {
    color: white;
}

.professional-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Animation for dropdown */
.professionals-dropdown.show {
    display: block !important;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional Mobile Styles for Featured Service */
@media (max-width: 768px) {
    .service-item.featured .service-header {
        padding: 1rem 1.5rem;
    }
    
    .service-item.featured .service-icon {
        width: 45px;
        height: 45px;
        margin-right: 1rem;
    }
    
    .service-item.featured .service-icon i {
        font-size: 1.3rem;
    }
    
    .service-item.featured .service-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    /* Reduce animation intensity on mobile */
    .service-item.featured {
        animation: featured-pulse-mobile 4s ease-in-out infinite;
    }
    
    /* Single column layout for categories on mobile */
    .service-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-section {
        padding: 1rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .category-features li {
        font-size: 0.85rem;
    }
}

@keyframes featured-pulse-mobile {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(45, 125, 50, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(45, 125, 50, 0.4);
    }
}

/* QR Code Styles */
.qr-code-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: 1rem;
    border: 2px solid rgba(45, 125, 50, 0.1);
}

/* Instituto Ferrer Partnership Styles */
.partnership-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(44, 90, 160, 0.02));
    border: 1px solid rgba(44, 90, 160, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.partnership-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.1);
    border-color: rgba(44, 90, 160, 0.25);
}

.partnership-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #555;
}

.partnership-info a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.partnership-info a:hover {
    color: #1e3d6f;
    text-decoration: underline;
}

/* Responsive adjustments for partnership note */
@media (max-width: 768px) {
    .partnership-note {
        padding: 0.8rem;
    }
    
    .partnership-info {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .partnership-info {
        font-size: 0.8rem;
        text-align: center;
        justify-content: center;
    }
}

.qr-code-section h4,
.qr-code-section h5 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.qr-code {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-description {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-style: italic;
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    .service-item:hover {
        transform: none; /* Disable hover effects on mobile */
    }
    
    .professional-avatar:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    /* Disable complex animations on very small devices */
    .professional-modal {
        backdrop-filter: none;
    }
    
    .header {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 768px) {
    .qr-code {
        width: 120px;
        height: 120px;
    }
    
    .qr-code-section {
        padding: 1rem;
    }
}