/* --- PAC Page Styles --- */

/* Hero Section */
.pac-hero {
    background: linear-gradient(135deg, #003a7a 0%, #0056b3 100%);
    padding: 100px 5% 120px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pac-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg id='patternId' width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='a' patternUnits='userSpaceOnUse' width='40' height='40' patternTransform='scale(2) rotate(0)'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='%23ffffff00'/%3E%3Cpath d='M11 6a5 5 0 01-5 5 5 5 0 01-5-5 5 5 0 015-5 5 5 0 015 5' stroke-width='1' stroke='rgba(255,255,255,0.05)' fill='none'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='800%25' height='800%25' transform='translate(0,0)' fill='url(%23a)'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.pac-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.pac-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.pac-hero-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.pac-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-cta {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-primary-cta {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(93, 160, 210, 0.3);
}

.btn-primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(93, 160, 210, 0.4);
    background-color: #4c8ebf;
}

.btn-secondary-cta {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
}

/* Wave Decorator */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
    fill: var(--bg-light);
}

@media (max-width: 768px) {
    .hero-wave svg {
        height: 40px;
    }
}

/* Servicios Section */
.pac-servicios {
    padding: 80px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-card-pac {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio-card-pac:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.pac-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(93, 160, 210, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.servicio-card-pac:hover .pac-icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
}

.pac-icon-wrapper svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.servicio-card-pac p {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Marquee - Oferta de Valor */
.pac-marquee-section {
    background: linear-gradient(135deg, #003a7a 0%, #0056b3 100%);
    padding: 22px 0;
    overflow: hidden;
    position: relative;
}

.pac-marquee-section::before,
.pac-marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.pac-marquee-section::before {
    left: 0;
    background: linear-gradient(to right, #003a7a, transparent);
}

.pac-marquee-section::after {
    right: 0;
    background: linear-gradient(to left, #0056b3, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    padding: 0 30px;
    letter-spacing: 0.3px;
}

.marquee-item i {
    color: var(--secondary-color);
    font-style: normal;
    font-size: 10px;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Especialidades Section */
.pac-especialidades {
    background: var(--white);
    padding: 100px 5%;
}

.especialidades-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.especialidades-highlight {
    display: flex;
    align-items: center;
    gap: 30px;
}

.big-number {
    font-size: 120px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.highlight-text h3 {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.highlight-text p {
    color: var(--text-light);
    font-size: 16px;
}

.especialidades-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    list-style: none;
}

.especialidad-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.especialidad-item:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateX(5px);
}

.especialidad-item i {
    color: var(--secondary-color);
}

.especialidad-item:hover i {
    color: var(--white);
}

/* Contacto Section */
.pac-contacto-section {
    padding: 80px 5%;
}

.contacto-card-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contacto-visual {
    text-align: center;
    padding-right: 50px;
    border-right: 1px dashed #ddd;
}

.logo-pac-main {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
}

.contacto-info-pac h3 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 24px;
}

.contacto-item-pac {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.contact-icon-box svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.contact-text-box h4 {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-text-box a {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-text-box a:hover {
    color: var(--secondary-color);
}

/* Horarios Section */
.pac-horarios {
    padding: 0 5% 80px;
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.horario-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.horario-card h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}

.horario-card p {
    font-size: 15px;
    color: var(--text-dark);
}

.horario-card .days {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 1100px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .pac-hero {
        padding-bottom: 80px;
    }
    .especialidades-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .especialidades-highlight {
        justify-content: center;
    }
    
    .contacto-card-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .contacto-visual {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px dashed #ddd;
        padding-bottom: 40px;
    }
    
    .pac-hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .horarios-grid {
        grid-template-columns: 1fr;
    }
    
    .pac-hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 300px;
    }
    
    .especialidades-list {
        grid-template-columns: 1fr;
    }
    
    .big-number {
        font-size: 80px;
    }
}

@media (max-width: 580px) {
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .contacto-card-wrapper {
        padding: 30px 20px;
    }
    
    .contact-text-box a {
        font-size: 18px;
    }
}
