/* Estilos específicos para la página de contacto */
/* Header de contacto */
.contact-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    padding: 120px 0 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-grain)"/></svg>');
}
.contact-hero-content {
    position: relative;
    z-index: 2;
}
.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.contact-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}
/* Información de contacto */
.contact-info {
    padding: 80px 0;
    background: white;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.1);
}
.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}
.contact-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 600;
}
.contact-card p {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 5px;
}
.contact-card span {
    color: #64748b;
    font-size: 0.9rem;
}
/* Sección de formularios */
.forms-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}
.form-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}
.form-card h2 {
    color: #1e293b;
    margin-bottom: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-card h2 i {
    color: #3b82f6;
}
/* Estilos de formularios */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Inter', sans-serif;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* === ESTILOS DEL CHECKBOX PERSONALIZADO === */
/* Aseguramos que el contenedor del checkbox esté bien alineado */
.forms-section .form-group .checkbox-label {
    display: flex; /* Usar flexbox para alinear elementos */
    align-items: center; /* ¡IMPORTANTE! Alinea verticalmente el checkbox y el texto en el centro */
    gap: 8px; /* Espacio entre el checkbox y el texto */
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #374151;
    margin: 25px 0; /* Margen para separar del resto del formulario */
}

/* Estilo para el input del checkbox */
.forms-section .form-group .checkbox-label .custom-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px !important; /* Forzar el ancho */
    height: 20px !important; /* Forzar el alto */
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    flex-shrink: 0; /* Evita que el checkbox se encoja */
    position: relative;
    transition: all 0.2s ease-in-out;
    /* Asegúrate de que no haya ninguna propiedad 'vertical-align' aquí */
}
.forms-section .form-group .checkbox-label .custom-checkbox:hover {
    border-color: #3b82f6; /* Cambio de color del borde al pasar el ratón */
}

.forms-section .form-group .checkbox-label .custom-checkbox:checked {
    background: #3b82f6; /* Fondo azul cuando está marcado */
    border-color: #3b82f6; /* Borde azul cuando está marcado */
}

.forms-section .form-group .checkbox-label .custom-checkbox:checked::after {
    content: '✓'; /* El símbolo de checkmark */
    font-family: 'Inter', sans-serif; /* Fuente para el checkmark */
    font-weight: bold; /* Negrita */
    font-size: 14px; /* Tamaño del checkmark */
    color: white; /* Color blanco del checkmark */
    position: absolute; /* Posicionamiento absoluto dentro del checkbox */
    top: 50%; /* Centrado vertical */
    left: 50%; /* Centrado horizontal */
    transform: translate(-50%, -50%); /* Ajuste fino para centrarlo perfectamente */
    line-height: 1; /* Asegura que el checkmark no tenga espacio extra de línea */
    pointer-events: none; /* Evita que el checkmark interfiera con los eventos del ratón en el checkbox */
}

/* Estilo del enlace dentro del label */
.forms-section .form-group .checkbox-label a {
    color: #3b82f6; /* Color del enlace */
    text-decoration: none; /* Sin subrayado por defecto */
}
.forms-section .form-group .checkbox-label a:hover {
    text-decoration: underline; /* Subrayado al pasar el ratón */
}
/* === FIN DE LOS ESTILOS DEL CHECKBOX PERSONALIZADO === */

/* Botón de contacto (evita conflictos con estilos globales) */
.btn-contact {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Información adicional */
.additional-info {
    padding: 80px 0;
}


/* Información adicional */
.additional-info {
    padding: 80px 0;
    background: white;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.info-card {
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}
.info-card h3 {
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.info-card h3 i {
    color: #3b82f6;
}
.info-card p {
    color: #64748b;
    line-height: 1.6;
}
/* Horarios */
.schedule {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    font-weight: 500;
}
.schedule-item span:first-child {
    color: #374151;
}
.schedule-item span:last-child {
    color: #3b82f6;
    font-weight: 600;
}
/* Estados de carga */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}
.form-success {
    background: #10b981;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}
.form-error {
    background: #ef4444;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}
/* Validación de campos */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}
/* Responsive */
@media (max-width: 1200px) {
    .forms-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 60px;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .forms-section {
        padding: 60px 0;
    }
    
    .form-card {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 1.8rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .form-card {
        padding: 25px 15px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
}
/* Animaciones específicas */
.form-card {
    animation: slideUp 0.6s ease;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fecha mínima para el selector de fecha */
input[type="date"] {
    position: relative;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    color: #3b82f6;
    cursor: pointer;
}
/* CTA de agendamiento */
.cta-agendar {
    background: var(--bg-white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    margin-top: 40px;
}

.cta-agendar h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cta-agendar p {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.cta-agendar a {
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 30px;
}
/* Estilos para tarjetas de contacto */
/* Asumo que .services-grid .service-card puede ser simplemente .service-card si no hay conflicto */
.service-card { 
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Valor de ejemplo si no están definidas las variables */
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0; /* Valor de ejemplo si no están definidas las variables */
}

.service-card:hover { 
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15); /* Valor de ejemplo si no están definidas las variables */
}

.service-icon { 
    width: 60px;
    height: 60px;
    background: #3b82f6; /* Valor de ejemplo si no está definida la variable */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.4rem;
}

.service-icon i { 
    color: white;
}

.small-text { 
    font-size: 0.9rem;
    color: #64748b; /* Valor de ejemplo si no está definida la variable */
    margin-top: 8px;
    font-style: italic;
}
#thankyou-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 41, 59, 0.85); /* fondo oscuro semitransparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
}

.popup-content {
  background: white;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 90%;
  line-height: 1.6;
  animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
