/* Specific styles for servicios.php */

/* Hero Section */
#services-hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 500;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title span {
    color: #ffcc00; /* Accent color */
}

.hero-buttons {
    margin-top: 30px;
}

.hero-button {
    display: inline-block;
    background-color: #007bff; /* Primary button color */
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: #0056b3;
}

/* Wave Divider */
.wave-divider {
    position: relative;
    width: 100%;
    height: 100px; /* Adjust height as needed */
    margin-top: -50px; /* Overlap with section above */
    z-index: 2;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Description Section */
.description-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.description-text {
    flex: 1;
}

.description-text .section-title {
    text-align: left;
}

.mission-statement {
    font-size: 1.5em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.mission-secondary {
    font-size: 1.1em;
    line-height: 1.6;
    color: #4a5568;
}

.description-image {
    flex: 1;
    text-align: center;
}

.description-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Service Detail Sections */
.service-detail {
    padding: 80px 0;
}

.service-detail.alt-bg {
    background-color: #f8fafc;
}

.service-detail .section-title {
    margin-bottom: 10px;
}

.service-detail .section-subtitle {
    margin-bottom: 60px;
}

.service-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-detail-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-detail-grid.three-columns {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-detail-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.program-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3em;
    font-weight: 900;
    color: rgba(0, 123, 255, 0.1);
    z-index: 0;
}

.service-detail-card-content {
    position: relative;
    z-index: 1;
}

.program-icon-wrapper {
    background-color: #e7f3ff;
    color: #007bff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.service-detail-title {
    font-size: 1.8em;
    color: #1a202c;
    margin-bottom: 15px;
}

.service-detail-description {
    font-size: 1em;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-features-list li {
    margin-bottom: 10px;
    color: #2d3748;
    font-size: 0.95em;
}

.service-features-list li i {
    color: #28a745; /* Green checkmark */
    margin-right: 10px;
}

.program-button {
    display: inline-flex;
    align-items: center;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.program-button:hover {
    background-color: #0056b3;
}

.program-button i {
    margin-left: 10px;
}

.service-info-box {
    background-color: #e6f7ff; /* Light blue background */
    border-left: 5px solid #007bff;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.service-info-icon {
    color: #007bff;
    font-size: 2em;
}

.service-info-content h4 {
    margin-top: 0;
    color: #007bff;
    font-size: 1.2em;
}

.service-info-content p {
    margin: 5px 0;
    color: #4a5568;
}

/* Service Stats */
.service-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.stat-item {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2.5em;
    font-weight: 800;
    color: #007bff;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1em;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Facilities Showcase */
.facilities-showcase {
    margin-top: 60px;
    text-align: center;
}

.facilities-title {
    font-size: 2em;
    color: #1a202c;
    margin-bottom: 30px;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.facility-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.facility-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: left;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.facility-item:hover .facility-overlay {
    transform: translateY(0);
}

.facility-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.facility-overlay p {
    margin: 0;
    font-size: 0.9em;
}

/* Medical Services Grid (Tópico) */
.service-medical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.medical-service-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.medical-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.medical-icon {
    font-size: 3em;
    color: #dc3545; /* Red for medical */
    margin-bottom: 15px;
}

.medical-service-card h3 {
    font-size: 1.5em;
    color: #1a202c;
    margin-bottom: 10px;
}

.medical-service-card p {
    font-size: 0.95em;
    color: #4a5568;
}

/* Emergency Protocol */
.emergency-protocol {
    background-color: #fff3cd; /* Light yellow */
    border-left: 5px solid #ffc107;
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 40px;
}

.protocol-title {
    font-size: 1.8em;
    color: #ffc107;
    margin-bottom: 25px;
    text-align: center;
}

.protocol-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.protocol-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1 1 calc(50% - 20px); /* Two columns on larger screens */
    min-width: 280px;
}

.protocol-step .step-number {
    background-color: #ffc107;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin-top: 0;
    color: #2d3748;
    font-size: 1.1em;
}

.step-content p {
    margin: 0;
    color: #4a5568;
    font-size: 0.9em;
}

/* Health Tips */
.health-tips {
    text-align: center;
}

.tips-title {
    font-size: 2em;
    color: #1a202c;
    margin-bottom: 30px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.tip-card i {
    font-size: 2.5em;
    color: #28a745; /* Green for health */
    margin-bottom: 15px;
}

.tip-card h4 {
    font-size: 1.3em;
    color: #1a202c;
    margin-bottom: 10px;
}

.tip-card p {
    font-size: 0.9em;
    color: #4a5568;
}

/* CTA Section */
.cta {
    background-color: #007bff;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .hero-button {
    background-color: white;
    color: #007bff;
    margin: 0 15px;
}

.cta-buttons .hero-button:hover {
    background-color: #e2e6ea;
}

/* Contact Services Section */
.contact-services {
    padding: 80px 0;
    background-color: #f0f2f5;
}

.contact-services .section-title {
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.contact-icon {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.5em;
    color: #1a202c;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 1em;
    color: #4a5568;
    margin: 5px 0;
}

.contact-card p i {
    margin-right: 10px;
    color: #007bff;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .description-container {
        flex-direction: column;
        text-align: center;
    }

    .description-text .section-title {
        text-align: center;
    }

    .protocol-step {
        flex: 1 1 100%; /* Single column on smaller screens */
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
    }

    .hero-button {
        padding: 10px 20px;
        margin: 0 5px;
    }

    .section-title {
        font-size: 2em;
    }

    .mission-statement {
        font-size: 1.2em;
    }

    .service-detail-grid, .service-medical-grid, .facilities-grid, .tips-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .cta-content h2 {
        font-size: 2em;
    }

    .cta-content p {
        font-size: 1em;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons .hero-button {
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-button {
        width: 90%;
        max-width: 250px;
    }

    .section-title {
        font-size: 1.8em;
    }

    .service-detail-card {
        padding: 20px;
    }

    .program-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

    .service-detail-title {
        font-size: 1.5em;
    }

    .stat-number {
        font-size: 2em;
    }

    .facilities-title, .protocol-title, .tips-title {
        font-size: 1.8em;
    }

    .medical-icon {
        font-size: 2.5em;
    }

    .contact-icon {
        font-size: 2.5em;
    }
}
