/* Estilos Rostro */
body {
    padding-top: 120px;
    background-color: #f8f9fa;
}

/* Sección ROSTRO */
.rostro-section {
    padding: 80px 50px;
    background-color: white;
    margin: 50px 0;
}

.rostro-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.rostro-header {
    margin-bottom: 50px;
}

.rostro-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.rostro-header h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #e91e63;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Grid de Procedimientos - 2 columnas */
.procedimientos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.procedimiento-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.procedimiento-item:hover {
    transform: translateY(-10px) scale(1.02);
    text-decoration: none;
}

.procedimiento-item:visited {
    color: inherit;
    text-decoration: none;
}

.procedimiento-image {
    width: 500px;
    height: 500px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.procedimiento-image:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.procedimiento-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.procedimiento-image:hover::before {
    opacity: 1;
}

.procedimiento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.procedimiento-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    width: 90%;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.procedimiento-image:hover .procedimiento-overlay {
    opacity: 1;
}

.procedimiento-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.4;
    max-width: 480px;
}

/* Sección de Redes Sociales */
.social-section {
    padding: 60px 50px;
    background-color: white;
    text-align: center;
}

.social-container {
    max-width: 800px;
    margin: 0 auto;
}

.social-container h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #333;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e91e63;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    background-color: #c2185b;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .procedimientos-grid {
        max-width: 1000px;
        gap: 40px;
    }

    .procedimiento-image {
        width: 420px;
        height: 420px;
    }

    .procedimiento-item h3 {
        font-size: 1.2rem;
        max-width: 400px;
    }

    .procedimiento-overlay {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }

    .rostro-section {
        padding: 60px 30px;
        margin: 30px 0;
    }

    .rostro-header h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .rostro-header h2 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .procedimientos-grid {
        gap: 35px;
        padding: 30px 0;
        max-width: 100%;
    }

    .procedimiento-image {
        width: 350px;
        height: 350px;
        margin-bottom: 25px;
    }

    .procedimiento-item h3 {
        font-size: 1.1rem;
        max-width: 330px;
    }

    .social-section {
        padding: 50px 30px;
    }

    .social-container h2 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .procedimiento-overlay {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .rostro-section {
        padding: 40px 20px;
        margin: 20px 0;
    }

    .rostro-header h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .rostro-header h2 {
        font-size: 0.9rem;
    }

    .procedimientos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px 0;
    }

    .procedimiento-image {
        width: 280px;
        height: 280px;
        margin-bottom: 15px;
    }

    .procedimiento-item h3 {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        max-width: 280px;
    }

    .social-section {
        padding: 40px 20px;
    }

    .social-container h2 {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .social-icon {
        width: 50px;
        height: 50px;
    }

    .social-icon svg {
        width: 20px;
        height: 20px;
    }

    .procedimiento-overlay {
        font-size: 1rem;
    }
}

/* Animaciones de entrada */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-card:nth-child(1) { transition-delay: 0.1s; }
.fade-in-card:nth-child(2) { transition-delay: 0.2s; }
.fade-in-card:nth-child(3) { transition-delay: 0.3s; }
.fade-in-card:nth-child(4) { transition-delay: 0.4s; }
.fade-in-card:nth-child(5) { transition-delay: 0.5s; }
.fade-in-card:nth-child(6) { transition-delay: 0.6s; }
.fade-in-card:nth-child(7) { transition-delay: 0.7s; }
.fade-in-card:nth-child(8) { transition-delay: 0.8s; }
.fade-in-card:nth-child(9) { transition-delay: 0.9s; }
