/* ===== ESTILOS LIMPIOS PARA PÁGINA DE CONTACTO ===== */

/* Calendar Section Styles (Nueva sección en lugar de modal) */
.calendar-section {
    background: var(--light-gray);
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

[data-theme="dark"] .calendar-section {
    background: #1a1a1a;
}

.calendar-section.show {
    opacity: 1;
    transform: translateY(0);
}

.calendar-card {
    background: var(--accent-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

[data-theme="dark"] .calendar-card {
    background: #2d2d2d;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.calendar-header-section {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.calendar-header-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .calendar-header-section h2 {
    color: var(--text-color);
}

.calendar-header-section p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.close-calendar-section {
    position: absolute;
    top: -1rem;
    right: 0;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-calendar-section:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.calendar-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Form Row for better layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Meeting Confirmation Content */
.meeting-confirmation-content {
    text-align: center;
    padding: 2rem 0;
}

.meeting-confirmation-content .success-icon {
    margin-bottom: 1.5rem;
}

.meeting-confirmation-content .success-icon i {
    font-size: 4rem;
    color: #2ed573;
}

.meeting-confirmation-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

[data-theme="dark"] .meeting-confirmation-content h3 {
    color: var(--text-color);
}

.meeting-confirmation-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Responsive Design for Calendar Section */
@media (max-width: 768px) {
    .calendar-section {
        padding: 2rem 0;
        margin: 1rem 0;
        border-radius: 15px;
    }
    
    .calendar-card {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .calendar-header-section h2 {
        font-size: 1.6rem;
    }
    
    .calendar-header-section p {
        font-size: 1rem;
    }
    
    .close-calendar-section {
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .calendar-content {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .calendar-section {
        padding: 1.5rem 0;
        border-radius: 10px;
    }
    
    .calendar-card {
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }
    
    .calendar-header-section {
        margin-bottom: 1.5rem;
    }
    
    .calendar-header-section h2 {
        font-size: 1.4rem;
    }
    
    .meeting-confirmation-content .success-icon i {
        font-size: 3rem;
    }
    
    .meeting-confirmation-content h3 {
        font-size: 1.6rem;
    }
}

/* Success Modal Styles (Solo para notificaciones) */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-color);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

[data-theme="dark"] .modal-content {
    background: #2d2d2d;
    color: var(--text-color);
}

.success-modal-content {
    background: var(--accent-color);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    margin: 0 20px;
    animation: modalSlideIn 0.3s ease-out;
}

[data-theme="dark"] .success-modal-content {
    background: #2d2d2d;
}

.success-icon {
    margin-bottom: 1.5rem;
}

.success-icon i {
    font-size: 4rem;
    color: #2ed573;
}

.success-modal-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

[data-theme="dark"] .success-modal-content h3 {
    color: var(--text-color);
}

.success-modal-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Form Field Error Styles */
.field-error {
    color: #ff4757 !important;
    font-size: 0.9rem !important;
    margin-top: 0.5rem !important;
    display: block;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ff4757 !important;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1) !important;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease-out;
    max-width: 400px;
    border-left: 4px solid var(--primary-color);
}

[data-theme="dark"] .notification {
    background: #2d2d2d;
    color: var(--text-color);
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    border-left-color: #ff4757;
}

.notification.success {
    border-left-color: #2ed573;
}

.notification.info {
    border-left-color: #3742fa;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification i {
    font-size: 1.2rem;
}

/* Character Counter */
.character-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-top: 0.5rem;
}

/* Calendar Styles (Adaptados para sección) */
.calendar-container {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .calendar-container {
    background: #1a1a1a;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.calendar-header button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-header button:hover {
    background: #e55a2b;
    transform: scale(1.1);
}

.calendar-header h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
}

[data-theme="dark"] .calendar-header h4 {
    color: var(--text-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

[data-theme="dark"] .calendar-grid {
    background: #404040;
}

.day-header {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    background: var(--accent-color);
    padding: 0.75rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

[data-theme="dark"] .calendar-day {
    background: #2d2d2d;
    color: var(--text-color);
}

.calendar-day.empty {
    color: #ccc;
    cursor: default;
}

.calendar-day.past {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
}

[data-theme="dark"] .calendar-day.past {
    background: #1a1a1a;
    color: #666;
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
}

.calendar-day.available:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.calendar-day.weekend {
    background: #fff3e0;
    color: #ff8c42;
}

[data-theme="dark"] .calendar-day.weekend {
    background: #2d2520;
    color: #ff8c42;
}

.calendar-day.busy {
    background: #ffebee;
    color: #f44336;
    cursor: not-allowed;
}

[data-theme="dark"] .calendar-day.busy {
    background: #2d1f20;
    color: #f44336;
}

.calendar-day.selected {
    background: var(--primary-color) !important;
    color: white !important;
    font-weight: 700;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.available {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid var(--primary-color);
}

.legend-color.busy {
    background: #ffebee;
    border: 2px solid #f44336;
}

.legend-color.weekend {
    background: #fff3e0;
    border: 2px solid #ff8c42;
}

/* Time Slots (Mejorados para sección) */
.time-slots {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .time-slots {
    background: #1a1a1a;
}

.time-slots h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

[data-theme="dark"] .time-slots h4 {
    color: var(--text-color);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.time-slot {
    padding: 0.75rem 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    background: var(--accent-color);
    color: var(--secondary-color);
}

[data-theme="dark"] .time-slot {
    background: #2d2d2d;
    border-color: #404040;
    color: var(--text-color);
}

.time-slot.available:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.time-slot.busy {
    background: #ffebee;
    color: #f44336;
    border-color: #f44336;
    cursor: not-allowed;
    opacity: 0.6;
}

[data-theme="dark"] .time-slot.busy {
    background: #2d1f20;
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Meeting Form (Mejorado para sección) */
.meeting-form {
    background: var(--light-gray);
    border-radius: 15px;
    padding: 1.5rem;
}

[data-theme="dark"] .meeting-form {
    background: #1a1a1a;
}

.meeting-form h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

[data-theme="dark"] .meeting-form h4 {
    color: var(--text-color);
}

.selected-datetime {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--secondary-color);
}

[data-theme="dark"] .selected-datetime {
    background: #1a1a1a;
    color: var(--text-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Meeting Confirmation */
.meeting-confirmation {
    max-width: 600px;
}

.meeting-info {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    text-align: left;
}

[data-theme="dark"] .meeting-info {
    background: #1a1a1a;
}

.meeting-info p {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

[data-theme="dark"] .meeting-info p {
    color: var(--text-color);
}

.auto-notifications {
    margin: 2rem 0;
}

.notification-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #2ed573;
    font-weight: 600;
}

.notification-details {
    text-align: left;
}

.notification-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.confirmation-actions {
    margin: 2rem 0;
}

.confirmation-actions h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

[data-theme="dark"] .confirmation-actions h4 {
    color: var(--text-color);
}

.calendar-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-calendar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #eee;
    border-radius: 10px;
    background: var(--accent-color);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

[data-theme="dark"] .btn-calendar {
    background: #2d2d2d;
    border-color: #404040;
    color: var(--text-color);
}

.btn-calendar:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.btn-calendar.google:hover {
    border-color: #4285f4;
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.btn-calendar.outlook:hover {
    border-color: #0078d4;
    background: rgba(0, 120, 212, 0.1);
    color: #0078d4;
}

.whatsapp-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: #20b954;
    transform: translateY(-2px);
}

.final-actions {
    text-align: center;
    margin-top: 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .calendar-modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .calendar-header {
        padding: 0;
    }
    
    .calendar-header h4 {
        font-size: 1.1rem;
    }
    
    .calendar-legend {
        gap: 1rem;
    }
    
    .slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .calendar-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-calendar {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .success-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem 1rem;
    }
    
    .calendar-modal-content {
        padding: 1rem;
    }
    
    .success-modal-content {
        padding: 2rem 1rem;
    }
    
    .success-icon i {
        font-size: 3rem;
    }
    
    .success-modal-content h3 {
        font-size: 1.6rem;
    }
    
    .calendar-day {
        padding: 0.5rem 0.25rem;
        font-size: 0.9rem;
    }
    
    .day-header {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .time-slot {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* ===== HEXÁGONOS ANIMADOS PARA CONTACTO ===== */

/* Hexágonos específicos para página de contacto */
.contact-hexagon-container {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 350px;
    height: 350px;
    opacity: 0.4;
    z-index: 1;
}

.contact-hexagon {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    animation: contact-float 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.contact-hexagon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.contact-hexagon i {
    font-size: 1.4rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.contact-hex-1 { 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    animation-delay: -1s; 
}

.contact-hex-2 { 
    top: 20%; 
    right: 0; 
    animation-delay: -2s; 
}

.contact-hex-3 { 
    bottom: 20%; 
    right: 0; 
    animation-delay: -3s; 
}

.contact-hex-4 { 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    animation-delay: -4s; 
}

.contact-hex-5 { 
    bottom: 20%; 
    left: 0; 
    animation-delay: -5s; 
}

.contact-hex-6 { 
    top: 20%; 
    left: 0; 
    animation-delay: -6s; 
}

@keyframes contact-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.4;
    }
    25% { 
        transform: translateY(-20px) rotate(5deg); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-10px) rotate(-3deg); 
        opacity: 0.5;
    }
    75% { 
        transform: translateY(-25px) rotate(3deg); 
        opacity: 0.7;
    }
}

/* Responsive para hexágonos de contacto */
@media (max-width: 1024px) {
    .contact-hexagon-container {
        display: none;
    }
}

/* ===== ESPACIADO MEJORADO PARA HERO DE CONTACTO ===== */

/* Asegurar que el hero tenga suficiente espacio superior */
.unified-hero {
    margin-top: 2rem;
}

/* Mejorar posicionamiento relativo para hexágonos */
.unified-hero .container {
    position: relative;
}