/* Estilos específicos para el paso de Resumen */

/* Permite controlar la posición vertical de los labels solo en este partial */
#partial-resumen .floating-field label,
.resumen-form .floating-field label {
    top: 45% !important;
}

/* Asegurar que los estados activos también respeten el estilo del partial */
#partial-resumen .floating-field input:focus + label,
#partial-resumen .floating-field input:not(:placeholder-shown) + label,
#partial-resumen .floating-field textarea:focus + label,
#partial-resumen .floating-field textarea:not(:placeholder-shown) + label,
#partial-resumen .floating-field select:focus + label,
#partial-resumen .floating-field select:not([value=""]) + label,
.resumen-form .floating-field input:focus + label,
.resumen-form .floating-field input:not(:placeholder-shown) + label,
.resumen-form .floating-field textarea:focus + label,
.resumen-form .floating-field textarea:not(:placeholder-shown) + label,
.resumen-form .floating-field select:focus + label,
.resumen-form .floating-field select:not([value=""]) + label {
    top: 0 !important;
}

/* Layout principal - reutilizando estilos de validacion-academica */
.resumen-summary {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* Resumen del estudiante */
.resumen-summary .student-summary {
    margin-bottom: 32px;
}

.resumen-summary .student-photo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.resumen-summary .student-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
}

.resumen-summary .student-name {
    font-size: 20px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
}

.resumen-summary .student-id,
.resumen-summary .student-course,
.resumen-summary .student-period {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 2px;
}

/* Resumen del representante */
.resumen-summary .representative-summary {
    text-align: left;
    margin: 32px auto;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    max-width: 720px;
}

.resumen-summary .representative-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.resumen-summary .representative-photo-wrapper {
    flex-shrink: 0;
}

.resumen-summary .representative-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

.resumen-summary .representative-details {
    flex: 1;
}

.resumen-summary .rep-field {
    font-size: 14px;
    color: #495057;
    margin-bottom: 4px;
}

.resumen-summary .rep-field span {
    font-weight: 600;
    color: #212529;
}

/* Sección de Redes Sociales */
.social-media-section {
    margin-top: 40px;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.social-title {
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 20px;
    text-align: center;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}

/* Asegurar que todos los botones se muestren */
.social-buttons > .social-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #ffffff;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-btn.visited {
    background: #00abb6 !important;
    color: #ffffff !important;
    border-color: #00abb6 !important;
    position: relative;
}

/* Ocultar SVG y texto cuando está visitado */
.social-btn.visited svg,
.social-btn.visited span {
    display: none !important;
}

/* Mostrar solo el tick centrado */
.social-btn.visited::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.social-btn.visited:hover {
    background: #00abb6 !important;
    color: #ffffff !important;
    border-color: #00abb6 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 171, 182, 0.3);
}

.social-btn.visited:hover::before {
    transform: translate(-50%, -50%);
}

.social-youtube:hover:not(.visited) {
    border-color: #ff0000;
    color: #ff0000;
}

.social-youtube:hover:not(.visited) svg {
    fill: #ff0000;
}

.social-facebook:hover:not(.visited) {
    border-color: #1877f2;
    color: #1877f2;
}

.social-facebook:hover:not(.visited) svg {
    fill: #1877f2;
}

.social-instagram:hover:not(.visited) {
    border-color: #e4405f;
    color: #e4405f;
}

.social-instagram:hover:not(.visited) svg {
    fill: #e4405f;
}

.social-hint {
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    color: #6c757d;
}

.social-hint.hint-success {
    color: #28a745;
    font-weight: 500;
}

.social-hint.hint-error {
    color: #dc3545;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .resumen-summary .representative-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .resumen-summary .representative-details {
        text-align: left;
        width: 100%;
    }
}
