/* ============================================
   CONTACTO - DISEÑO PREMIUM
   Página de contacto moderna y profesional
   ============================================ */

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, white 100%);
    padding: var(--space-5xl) 0;
}

/* ============================================
   CONTACT WRAPPER
   ============================================ */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.8s var(--ease-out);
}

/* ============================================
   CONTACT INFO SIDEBAR
   ============================================ */
.contact-info {
    background: var(--gradient-primary);
    padding: var(--space-5xl) var(--space-4xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.contact-info::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s infinite ease-in-out;
    animation-delay: -10s;
}

.contact-info > * {
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
    font-weight: var(--weight-extrabold);
    font-family: var(--font-display);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.contact-info > p {
    opacity: 0.9;
    margin-bottom: var(--space-4xl);
    line-height: 1.8;
    font-size: var(--text-lg);
}

/* Info Items Premium */
.info-item {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.info-item i {
    font-size: 1.75rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.info-item-content {
    flex: 1;
}

.info-item h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    font-weight: var(--weight-semibold);
    color: white;
}

.info-item p {
    opacity: 0.9;
    font-size: var(--text-base);
    line-height: 1.6;
    margin: 0;
}

.info-item a {
    color: white;
    text-decoration: none;
    transition: color var(--duration-fast);
}

.info-item a:hover {
    color: var(--accent-color);
}



/* ============================================
   CONTACT FORM WRAPPER
   ============================================ */
.contact-form-wrapper {
    padding: var(--space-5xl) var(--space-4xl);
    background: white;
}

.contact-form-wrapper h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-3xl);
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    font-family: var(--font-display);
    position: relative;
    padding-bottom: var(--space-lg);
}

.contact-form-wrapper h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

/* Form Group Premium */
.form-group {
    margin-bottom: var(--space-xl);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    color: var(--text-primary);
}

.form-group label span {
    color: var(--error-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--text-primary);
    transition: all var(--duration-normal) var(--ease-smooth);
    background: var(--bg-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: var(--space-3xl);
}

/* Checkbox Group Premium */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    transition: all var(--duration-normal);
}

.checkbox-group:has(input:checked) {
    background: rgba(14, 165, 233, 0.05);
    border-color: var(--secondary-color);
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: var(--weight-semibold);
    transition: color var(--duration-fast);
}

.checkbox-group a:hover {
    color: var(--secondary-dark);
    text-decoration: underline;
}

/* Submit Button */
.form-group .btn-primary {
    width: 100%;
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    margin-top: var(--space-xl);
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    padding: var(--space-5xl) 0;
    background: white;
}

.map-container {
    height: 500px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    position: relative;
}

.map-container::before {
    z-index: 0;
}

#map {
    width: 100%;
    height: 100%;
    border: 0;
}


.map-container:hover #map {
    filter: grayscale(0%);
}


/* ============================================
   COMMENTS SECTION
   ============================================ */
.comments-section {
    background: linear-gradient(180deg, white 0%, var(--bg-secondary) 100%);
    padding: var(--space-5xl) 0;
}

.comments-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

/* Comment Form */
.comment-form {
    background: white;
    padding: var(--space-4xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    height: fit-content;
    transition: all var(--duration-normal);
}

.comment-form:hover {
    box-shadow: var(--shadow-xl);
}

.comment-form h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-3xl);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    font-family: var(--font-display);
}

/* Rating Container Premium */
.rating-container {
    display: flex;
    flex-direction: row-reverse; /* importante */
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    width: fit-content;
}

.rating-container input[type="radio"] {
    display: none;
}

.rating-container label {
    font-size: 2rem;
    color: var(--gray-300);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.rating-container label:hover,
.rating-container label:hover ~ label {
    color: var(--accent-color);
    transform: scale(1.2);
}

.rating-container input[type="radio"]:checked ~ label {
    color: var(--accent-color);
    animation: starPop 0.3s var(--ease-bounce);
}

@keyframes starPop {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Comments List */
.comments-list {
    background: white;
    padding: var(--space-4xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    max-height: 700px;
    overflow-y: auto;
}

.comments-list::-webkit-scrollbar {
    width: 8px;
}

.comments-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

.comments-list::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.comments-list h3 {
    color: var(--primary-color);
    margin-bottom: var(--space-3xl);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    font-family: var(--font-display);
    position: sticky;
    top: 0;
    background: white;
    padding-bottom: var(--space-lg);
    z-index: 1;
}

/* Comment Item Premium */
.comment-item {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 2px solid var(--border-light);
    animation: slideInUp 0.6s var(--ease-out) backwards;
}

.comment-item:nth-child(1) { animation-delay: 0.1s; }
.comment-item:nth-child(2) { animation-delay: 0.2s; }
.comment-item:nth-child(3) { animation-delay: 0.3s; }
.comment-item:nth-child(4) { animation-delay: 0.4s; }

.comment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--accent-light);
    box-shadow: var(--shadow-md);
    transition: transform var(--duration-normal);
}

.comment-item:hover .comment-avatar img {
    transform: scale(1.1);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.comment-author {
    flex: 1;
}

.comment-header h4 {
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
}

.comment-date {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.comment-rating {
    color: var(--accent-color);
    font-size: var(--text-lg);
    display: flex;
    gap: 2px;
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--text-base);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--space-5xl) 0;
    background: var(--bg-secondary);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    background: white;
    transition: all var(--duration-normal);
    animation: fadeInUp 0.6s var(--ease-out) backwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-item.active {
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.faq-question {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xl) var(--space-2xl);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    transition: left var(--duration-normal) var(--ease-smooth);
}

.faq-question:hover::before {
    left: 0;
}

.faq-question > * {
    position: relative;
    z-index: 1;
}

.faq-question h3 {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    padding-right: var(--space-lg);
}

.faq-question i {
    font-size: var(--text-2xl);
    transition: transform var(--duration-normal) var(--ease-smooth);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    background: white;
    padding: 0 var(--space-2xl);
    max-height: 0;
    overflow: hidden;
    transition: all var(--duration-slow) var(--ease-smooth);
}

.faq-item.active .faq-answer {
    padding: var(--space-2xl);
    max-height: 1000px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--text-base);
}

.faq-answer ul {
    margin-top: var(--space-lg);
    padding-left: var(--space-xl);
}

.faq-answer li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        padding: var(--space-4xl) var(--space-3xl);
    }
    
    .contact-form-wrapper {
        padding: var(--space-4xl) var(--space-3xl);
    }
    
    .comments-container {
        grid-template-columns: 1fr;
    }
    
    .comments-list {
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .contact-info h2 {
        font-size: var(--text-3xl);
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: var(--space-3xl) var(--space-2xl);
    }
    
    .info-item {
        padding: var(--space-lg);
    }
    
    .comment-form,
    .comments-list {
        padding: var(--space-2xl);
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .map-container {
        height: 350px;
    }
    
    .faq-question {
        padding: var(--space-lg) var(--space-xl);
    }
    
    .faq-question h3 {
        font-size: var(--text-base);
    }
}

@media (max-width: 576px) {
    .contact-info h2 {
        font-size: var(--text-2xl);
    }
    
    .contact-form-wrapper h3 {
        font-size: var(--text-2xl);
    }
    
    .info-item {
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .info-item i {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .comment-item {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .comment-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .rating-container label {
        font-size: 1.5rem;
    }
    
    .faq-question {
        padding: var(--space-md) var(--space-lg);
    }
    
    .faq-question h3 {
        font-size: var(--text-sm);
    }
    
    .faq-question i {
        font-size: var(--text-xl);
    }
}

/* ============================================
   ESTADOS DE CARGA Y VALIDACIÓN
   ============================================ */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--error-color);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: var(--success-color);
}

.form-group .error-message {
    color: var(--error-color);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
    display: none;
}

.form-group.error .error-message {
    display: block;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.form-group .success-icon,
.form-group .error-icon {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.form-group.success .success-icon,
.form-group.error .error-icon {
    display: block;
}

/* Loading State */
.btn-primary.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}


.no-faq, .error-faq {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin: 20px 0;
}

.error-faq {
    color: #e74c3c;
    background-color: #fadbd8;
}
/* ============================================
   FIN CONTACTO CSS
   ============================================ */