/* Especialistas CSS - Diseño Mejorado con Secciones Amplias */

/* Hero Section */
.specialists-hero {
    position: relative;
    height: 60vh;
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.specialists-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/specialists-bg.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 49, 80, 0.3);
    z-index: 2;
}

.specialists-hero .hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.specialists-hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.specialists-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Main Section */
.specialists-section {
    padding: 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    padding: 80px 0 60px 0;
    background: white;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #173150;
    margin-bottom: 1rem;
    font-weight: bold;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Specialists Grid - Ahora son secciones completas */
.specialists-grid {
    display: block;
}

/* Individual Specialist Section */
.specialist-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.specialist-section:nth-child(odd) {
    background: white;
}

.specialist-section:nth-child(even) {
    background: #f8f9fa;
}

.specialist-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(23, 49, 80, 0.02) 0%, rgba(34, 201, 195, 0.02) 100%);
    z-index: 1;
}

.specialist-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.specialist-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 600px;
}

/* Alternar posición de imagen */
.specialist-section:nth-child(even) .specialist-content {
    direction: rtl;
}

.specialist-section:nth-child(even) .specialist-content > * {
    direction: ltr;
}

/* Specialist Image */
.specialist-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.specialist-image-container {
    position: relative;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.specialist-image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.specialist-image-container::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    border: 3px solid rgba(34, 201, 195, 0.4);
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
    transition: all 0.4s ease;
}

.specialist-image-container:hover::before {
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border-color: rgba(34, 201, 195, 0.6);
}

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

.specialist-image-container:hover .specialist-image {
    transform: scale(1.05);
}

.specialist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(23, 49, 80, 0.85), rgba(34, 201, 195, 0.85));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.specialist-image-container:hover .specialist-overlay {
    opacity: 1;
}

.specialist-social {
    display: flex;
    gap: 20px;
}

.specialist-social a {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.specialist-social a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Specialist Info */
.specialist-info-wrapper {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.specialist-info-wrapper h3 {
    font-size: 3rem;
    color: #173150;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.specialist-title {
    font-size: 1.4rem;
    color: #22C9C3;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.specialist-degree {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.specialist-experience {
    font-size: 1rem;
    color: #888;
    margin-bottom: 30px;
    font-style: italic;
}

.specialist-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.specialty-tag {
    background: linear-gradient(135deg, #173150, #22C9C3);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.specialty-tag:hover {
    transform: translateY(-2px);
}

.specialist-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 35px;
    text-align: justify;
}

.specialist-certifications {
    background: rgba(23, 49, 80, 0.05);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #22C9C3;
}

.specialist-certifications h4 {
    font-size: 1.2rem;
    color: #173150;
    margin-bottom: 15px;
    font-weight: 600;
}

.specialist-certifications ul {
    list-style: none;
    padding: 0;
}

.specialist-certifications li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.specialist-certifications li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22C9C3;
    font-weight: bold;
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #173150 0%, #22C9C3 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat-x;
    opacity: 0.3;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: white;
    color: #173150;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .specialist-container {
        padding: 0 30px;
    }
    
    .specialist-content {
        gap: 60px;
    }
    
    .specialist-info-wrapper h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .specialist-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .specialist-section:nth-child(even) .specialist-content {
        direction: ltr;
    }
    
    .specialist-image-wrapper {
        min-height: 400px;
        order: -1;
    }
    
    .specialist-info-wrapper {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .specialists-hero h1 {
        font-size: 2.5rem;
    }

    .specialists-hero p {
        font-size: 1.1rem;
    }

    .section-header {
        padding: 60px 0 40px 0;
    }

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

    .specialist-section {
        padding: 60px 0;
    }
    
    .specialist-container {
        padding: 0 20px;
    }

    .specialist-content {
        gap: 40px;
    }

    .specialist-info-wrapper h3 {
        font-size: 2rem;
    }
    
    .specialist-title {
        font-size: 1.2rem;
    }
    
    .specialist-description {
        font-size: 1rem;
    }

    .specialist-image-wrapper {
        min-height: 350px;
    }

    .cta-section {
        padding: 60px 0;
    }

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

@media (max-width: 480px) {
    .specialists-hero {
        height: 50vh;
    }

    .specialists-hero h1 {
        font-size: 2rem;
    }

    .specialists-hero p {
        font-size: 1rem;
    }

    .specialist-section {
        padding: 40px 0;
    }

    .specialist-container {
        padding: 0 15px;
    }

    .specialist-content {
        gap: 30px;
    }
    
    .specialist-info-wrapper {
        padding: 15px;
    }

    .specialist-info-wrapper h3 {
        font-size: 1.8rem;
    }

    .specialist-specialties {
        justify-content: center;
    }

    .specialist-image-wrapper {
        min-height: 300px;
    }

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

/* Footer Mejorado - Diseño Moderno */

.main-footer {
    background: linear-gradient(135deg, #173150 0%, #1a3a5c 50%, #22C9C3 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"></path></svg>') no-repeat center top;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

.main-footer .container {
    position: relative;
    z-index: 2;
}

/* Footer Content */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding: 80px 0 60px 0;
    align-items: start;
}

/* Footer Sections */
.footer-section {
    color: white;
}

.footer-section h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #22C9C3;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #22C9C3, #ffffff);
    border-radius: 2px;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Footer Lists */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer-section li a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #22C9C3;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.footer-section li a:hover {
    color: #22C9C3;
    transform: translateX(5px);
    text-shadow: 0 2px 4px rgba(34, 201, 195, 0.3);
}

.footer-section li a:hover::before {
    transform: translateX(3px);
    color: #ffffff;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(34, 201, 195, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-social a:hover {
    background: rgba(34, 201, 195, 0.2);
    border-color: #22C9C3;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(34, 201, 195, 0.3);
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-contact p:hover {
    padding-left: 10px;
    border-bottom-color: rgba(34, 201, 195, 0.5);
}

.footer-contact i {
    width: 20px;
    color: #22C9C3;
    font-size: 1.1rem;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 0 30px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Company Logo Section */
.footer-company-logo {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-company-logo:hover {
    opacity: 1;
}

.footer-company-logo img {
    max-height: 90px;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-company-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-company-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Decorative Elements */
.footer-section:first-child::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #22C9C3, transparent);
    border-radius: 2px;
}

/* Animation on scroll */
.footer-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.footer-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effect for entire footer */
.main-footer:hover::before {
    opacity: 0.15;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0 40px 0;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.6rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .footer-contact p {
        justify-content: center;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 40px 0 30px 0;
        gap: 30px;
    }
    
    .footer-section h3 {
        font-size: 1.4rem;
    }
    
    .footer-section p {
        font-size: 0.95rem;
    }
    
    .footer-social a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        padding: 25px 0;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}