@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #0c0c0c;
    color: #fff;
    padding: 2rem;
    line-height: 1.6;
}

/* Efectos de borde animado (consolidado) */
.glow-effect::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ff0000, #ff7300, #fffb00, #48ff00, 
        var(--primary), #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    border-radius: inherit;
    z-index: 0;
    animation: glowing-border 15s linear infinite;
    filter: blur(5px);
    opacity: 0.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo con efecto de borde */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    padding: 20px;
}

.logo-wrapper {
    width: 154px;
    height: 154px;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    border-radius: 50%;
    z-index: 0;
    animation: glowing-border 20s linear infinite;
    filter: blur(5px);
    opacity: 0.7;
}

.logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2;
    background-color: #0c0c0c;
}

.logo-wrapper:hover {
    transform: translateY(-5px);
}

.title {
    margin: 1rem 0;
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(90deg, #ff8a00, #e52e71, #00b4db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 10s ease infinite;
    background-size: 200% 200%;
    height: auto;
}

.description {
    text-align: center;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ccc;
}

.description-text {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Contenedor de las cajas animadas */
.boxes-container {
    display: flex;
    justify-content: space-between;
    margin: 4rem 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.box-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
    transition: transform 0.3s ease;
}

.box-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    border-radius: 12px;
    z-index: 0;
    animation: glowing-border 20s linear infinite;
    filter: blur(5px);
    opacity: 0.7;
}

.box {
    width: 100%;
    min-height: 200px;
    background: #111;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.box-text {
    font-size: 0.85rem;
    margin: 0.5rem 0;
    color: #e0e0e0;
    line-height: 1.5;
}

.box-wrapper:hover {
    transform: translateY(-5px);
}

/* ESTILOS BASE DEL FORMULARIO (MANTENIDOS) */
.form-wrapper {
    max-width: 1200px;
    margin: 4rem auto;
    position: relative;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    border-radius: 12px;
    z-index: 0;
    animation: glowing-border 15s linear infinite;
    filter: blur(5px);
    opacity: 0.7;
}

.form-container {
    background: #111;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    z-index: 2;
}
/* Grid del formulario */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas de igual tamaño */
    gap: 1rem;
}

/* Grupo de ancho completo */
.form-group.full-width {
    grid-column: span 2; /* Ocupa las dos columnas */
}

/* Ajuste para inputs de email */
.form-group.full-width .form-input {
    width: 100%;
}
/* NUEVOS ESTILOS CON EFECTOS HOVER Y PLACEHOLDER ANIMADO */
.form-group {
    position: relative;
    margin-bottom: 1rem;
}

/* Ajuste para el label flotante sin fondo */
.form-group label {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #777;
    font-size: 0.95rem;
    /* Eliminamos el background-color */
    padding: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    transform-origin: left center;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 213, 0.2);
}

.form-input:not(:placeholder-shown) {
    border-color: #00ffd5;
    outline: none;
}

.form-input:focus + label,
.form-input:not(:placeholder-shown) + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: #00ffd5;
    background-color: #222;
    transform: translateY(0);
}

/* EFECTO HOVER PARA LOS INPUTS */
.form-input:hover {
    border-color: #555;
}

.form-input:focus:hover {
    border-color: #00ffd5;
    box-shadow: 0 0 0 2px rgba(0, 255, 213, 0.2);
}

/* CHECKBOX CON EFECTO HOVER */
.checkbox-group {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #333;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:hover {
    border-color: #555;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: #00ffd5;
    border-color: #00ffd5;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #111;
    font-size: 12px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-group label {
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-group:hover label {
    color: #fff;
}

/* BOTÓN CON EFECTOS MEJORADOS */
.submit-btn {
    background: linear-gradient(90deg, #00ffd5, #002bff);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 213, 255, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn:active {
    transform: translateY(1px);
}
/* ------------------------------------------------------------------------------------- */
/* Nuevos estilos para los campos agregados */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300ffd5'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
    padding-top: 1rem;
}

/* Estilo para el campo "Otro" cuando es visible */
#otro-asunto-container.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ------------------------------------------------------------------------------------- */
/* ANIMACIÓN PARA EL BORDE */
@keyframes glowing-border {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Estilos para listas profesionales */
.professional-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: none;
    width: 100%;
}

.box-list {
    margin-top: 0.5rem;
}

.professional-list-item {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: #e0e0e0;
    font-size: 0.8rem;
    text-align: left;
}

.professional-list-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00ffd5;
    font-size: 1.2rem;
    line-height: 1;
}

.professional-title {
    font-size: 1.2rem;
    color: #00ffd5;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 255, 213, 0.3);
    padding-bottom: 0.3rem;
    font-weight: 500;
    width: 100%;
}

/* Estilos para el encabezado del perfil */
.profile-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
    padding: 0 1rem;
}

.profile-title {
    font-size: 1.8rem;
    color: #00ffd5;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(90deg, #00ffd5, #0084ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 8s ease infinite;
    background-size: 200% 200%;
}

/* Estilos para el acordeón */
.skills-accordion {
    margin: 0 auto 1rem;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-toggle {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 213, 255, 0.1);
    border: 1px solid rgba(0, 255, 213, 0.3);
    color: #00ffd5;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 0; /* Asegura que no hay espacio extra */
}

.accordion-toggle:hover {
    background: rgba(0, 213, 255, 0.2);
}

.accordion-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

/* Estilos para la lista de habilidades */
.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(17, 17, 17, 0.7);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
    border: 1px solid rgba(0, 255, 213, 0.1);
    border-top: none;
}

.skills-list[aria-hidden="false"] {
    max-height: 500px; /* Ajusta según necesidad */
    padding: 0.5rem 0;
}

.skill-item {
    padding: 0.7rem 2rem;
    font-size: 0.9rem;
    color: #e0e0e0;
    position: relative;
    transition: all 0.2s ease;
}

.skill-item::before {
    content: "▹";
    position: absolute;
    left: 1rem;
    color: #00ffd5;
}

.skill-item:hover {
    background: rgba(0, 213, 255, 0.05);
    color: #fff;
}

/* Leyenda de ajuste */
.adjustment-legend {
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-title {
        font-size: 1.5rem;
    }
    
    .accordion-toggle {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .skill-item {
        padding: 0.6rem 1.5rem 0.6rem 2.5rem;
        font-size: 0.85rem;
    }
    
    .skill-item::before {
        left: 1rem;
    }
}

/* Estilos para el footer */
.main-footer {
    background-color: #111;
    padding: 2rem 0;
    margin-top: 4rem;
    position: relative;
    border-top: 1px solid rgba(0, 255, 213, 0.1);
}

.main-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    animation: glowing-border 20s linear infinite;
    filter: blur(2px);
    opacity: 0.7;
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    position: relative;
    padding: 0.5rem 1rem;
}

.copyright::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #00ffd5;
    transition: width 0.3s ease;
}

.copyright:hover::after {
    width: 100%;
}

/* Estilos para la navegación del footer (opcional) */
.footer-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #00ffd5;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #00ffd5;
}

.footer-nav a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .main-footer {
        padding: 1.5rem 0;
    }
    
    .footer-nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-footer .container {
        padding: 0 1rem;
    }
    
    .copyright {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .profile-title {
        font-size: 1.3rem;
    }
}

/* Animaciones */
@keyframes glowing-border {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Versión responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .boxes-container {
        flex-direction: column;
    }
    
    .box-wrapper {
        min-width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .professional-list {
        padding-left: 1.2rem;
    }
    
    .professional-list-item {
        font-size: 0.75rem;
        padding-left: 1rem;
    }
    
    .professional-title {
        font-size: 1.1rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .description-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    
    .professional-title {
        font-size: 1rem;
    }
    
    .box-text {
        font-size: 0.8rem;
    }
    
    .professional-list-item {
        font-size: 0.7rem;
    }
}