/* Estilos para el formulario de contacto moderno */

/* Estilos adicionales específicos para el formulario de contacto */

/* Estilos para el campo de selección */
.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #f6f5f55c;;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-select.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-position: right 0.75rem center, center right 2.25rem;
  background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-select.is-valid {
  border-color: #198754;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-position: right 0.75rem center, center right 2.25rem;
  background-size: 16px 12px, calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Loading indicator para el botón de envío */
.loading-indicator {
    display: none;
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* Estilos para los tags de servicios seleccionables */
.service-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.service-tag {
    position: relative;
}

.service-tag-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.service-tag-label {
	display: inline-block;
	background-color: #f8f9fa00;
	color: #495057;
	border: none;
	border-radius: 16px;
	padding: 8px 16px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0px 0px 14px -2px #00000026;
}

.service-tag-input:checked + .service-tag-label {
    background-color: #006D77; /* Petrol Blue */
    color: white;
    border-color: #006D77;
    box-shadow: 0 2px 5px rgba(0, 109, 119, 0.2);
}

.service-tag-label:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.service-tag-input:checked + .service-tag-label:hover {
    background-color: #005a63; /* Petrol Blue oscuro */
}

.service-tag-input:focus + .service-tag-label {
    box-shadow: 0 0 0 3px rgba(0, 109, 119, 0.25);
}

.loading-indicator {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Honeypot para anti-spam */
.hp-input {
    position: absolute;
    left: -9999px;
}

/* Mejoras visuales para el formulario */
.card-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control:focus {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Animación de entrada para alertas */
.alert {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Solución para el checkbox */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
    /*border: 1px solid #4640de;*/
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #4640de;
    border-color: #4640de;
}

.form-check-input[type="checkbox"]:checked::after {
    content: '\2714';
    position: absolute;
    color: white;
    font-size: 14px;
    top: 1px;
    left: 5px;
}

.custom-checkbox label {
    cursor: pointer;
    user-select: none;
    line-height: 1.5;
}

/* Estilos moderno para formulario con glasmorfismo */
.form-label {
    font-weight: 600;
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

/* Efectos para campos de formulario */
.form-control {
    display: block;
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid rgba(220, 220, 220, 0.5);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #4640de;
    box-shadow: 0 8px 25px rgba(70, 64, 222, 0.15);
    transform: translateY(-2px);
    outline: 0;
}

.form-control::placeholder {
    color: #999;
    opacity: 0.7;
}

/* Glasmorfismo para la tarjeta de información de contacto */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Iconos de información de contacto */
.feature-box {
    position: relative;
    padding-left: 78px;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 20px 20px 20px 80px;
}

.feature-box .fbox-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4640de, #6a5ae0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 10px 20px rgba(70, 64, 222, 0.2);
}

.feature-box .fbox-icon i {
    color: white;
    font-size: 22px;
}

.feature-box .fbox-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.feature-box .fbox-content p {
    color: #666;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(70, 64, 222, 0.15);
}

.custom-control-input:checked {
    background-color: #4640de;
    border-color: #4640de;
}

.button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Sección de contacto */
 
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.contact-card-inner {
    padding: 1.5rem;
    text-align: left;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
}

.contact-card-content {
    flex: 1;
}

/* Imagen de oficina */
.contact-office-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-office-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

.contact-office-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-cards-stack {
    display: flex;
    flex-direction: column;
}

.contact-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: linear-gradient(45deg, #4361ee, #3f37c9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
    font-size: 1.25rem;
}

.contact-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.contact-text a {
    color: #4361ee;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.contact-text a:hover {
    color: #3f37c9;
    text-decoration: none;
}

.contact-hover-content {
    margin-top: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    color: #6c757d;
    font-size: 0.9rem;
}

.contact-card:hover .contact-hover-content {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de borde animado */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #3f37c9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-title {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.contact-card-inner {
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--turquesa), var(--turquesa-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
    font-size: 1.25rem;
}

.contact-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.contact-text a {
    color: #4361ee;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.contact-text a:hover {
    color: #3f37c9;
    text-decoration: none;
}

.contact-hover-content {
    margin-top: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    color: #6c757d;
    font-size: 0.9rem;
}

.contact-card:hover .contact-hover-content {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de borde animado */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--turquesa), var(--turquesa-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

/* Diseño de dos columnas */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.form-container {
    flex: 2;
    min-width: 300px;
    background: var(--form-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Estilos de información de contacto */
.info-card {
    background: var(--form-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
}

.info-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.info-title {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.info-text {
    font-size: 1rem;
    color: var(--gray-color);
    line-height: 1.6;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Estilos del formulario */
.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--input-bg);
    transition: all 0.3s;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: white;
}

.form-label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--gray-color);
    font-size: 1rem;
    transition: all 0.3s;
    pointer-events: none;
    background: transparent;
    padding: 0 5px;
}

.form-control:focus ~ .form-label,
.form-control.has-content ~ .form-label {
    top: 0;
    font-size: 0.85rem;
    left: 18px;
    background: var(--input-bg);
    color: var(--primary-color);
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(94, 23, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

textarea.form-control ~ .form-label {
    top: 20px;
}

/* Estilos para el checkbox de política de privacidad */
.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    background-color: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    transition: all 0.2s;
    margin: 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

.form-check-label {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--gray-color);
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-check-label a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Botón de envío */
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(94, 23, 235, 0.3);
    gap: 8px;
}

.submit-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(94, 23, 235, 0.4);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(94, 23, 235, 0.3);
}

.submit-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.submit-btn:hover i {
    transform: translateX(3px);
}

/* Indicador de carga */
.loading-indicator {
    display: none;
    margin-right: 10px;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.submitting .loading-indicator {
    display: inline-block;
}

/* Mensajes de formulario */
.form-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: none;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* Validación */
/*.is-invalid {
    border-color: var(--error-color);
}

.is-valid {
    border-color: var(--success-color);
}

.invalid-feedback {
    display: none;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}
*/
/* Estilos para la cabecera de contacto */

.page-contact {   
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom/100% auto no-repeat !important;
}

.page-title-contact {
    position: relative;
    padding: 60px 0 100px;
    margin-top: 0;
    background: linear-gradient(135deg, var(--turquesa) 0%, var(--turquesa-dark) 100%);
    color: white;
    overflow: hidden;
    z-index: 1;
    border-bottom: 1px solid #fff !important;
    top: -21vh;
    height: 53vh;
    opacity: 1;
}

.page-title-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/slider/slider11.webp") bottom/100% auto no-repeat;
    z-index: -1;
    opacity: 0.15;
    background-size: cover;
}

.page-title-contact h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #a0e9ff; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-title-contact .lead {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.contact-header-cta {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-header-cta .btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-header-cta .btn i {
    font-size: 1.1em;
    margin-right: 8px;
}

.contact-header-cta .btn-primary {
    background: #fff;
    color: var(--turquesa);
    border-color: #fff;
}

.contact-header-cta .btn-outline-primary {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    background: transparent;
}

.contact-header-cta .btn-outline-primary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}
 
.contact-header-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100" preserveAspectRatio="none"><path fill="%23ffffff" d="M0,70L80,60C160,50,320,30,480,35C640,40,800,70,960,75C1120,80,1280,60,1360,50L1440,40L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z"></path></svg>');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 2;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
}
/* Responsive */
@media (max-width: 991.98px) {
    .page-title-contact {
        padding: 100px 0 80px;
    }
    
    .page-title-contact h1 {
        font-size: 2.8rem;
    }
    
    .page-title-contact .lead {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
    
    .contact-header-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-header-cta .btn {
        width: 80%;
        max-width: 280px;
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .page-title-contact h1 {
        font-size: 2.2rem;
    }
    
    .page-title-contact .lead {
        font-size: 1.1rem;
    }
    
    .contact-header-cta .btn {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }
}

.is-invalid {
  border-color: #dc3545 !important;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-valid {
  border-color: #198754 !important;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
  display: none;
}

.is-invalid + .invalid-feedback,
.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-content {
    margin-top: -12%;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}



.was-validated .form-control:invalid {
    border-color: var(--error-color);
}

.was-validated .form-control:invalid ~ .invalid-feedback {
    display: block;
}

.was-validated .form-control:valid {
    border-color: var(--success-color);
}

/* Animaciones */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}





.contact-section.bg-white {
	margin-top: 7%;
}

/* Media queries */
@media (max-width: 992px) {
    .contact-title {
        font-size: 2.4rem;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .form-container, 
    .contact-info {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-header {
        margin-bottom: 40px;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 30px;
    }
    
    .submit-btn {
        width: 100%;
    }

    .contact-section.bg-white {
        margin-top: 17%;
    }

    .form-content {
        margin-top: -22%;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 20px;
    }
}

/* Honeypot para anti-spam */
.hp-input {
    position: absolute;
    left: -9999px;
}


/* Notificación tipo toast similar a la imagen */
    .notification-toast {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%) translateY(-20px);
      z-index: 999;
      padding: 15px;
      border-radius: 8px;
      box-shadow: 0 5px 25px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      min-width: 320px;
      max-width: 450px;
      opacity: 0;
      transition: all 0.3s ease;
      background-color: white;
      border-left: 5px solid #4640de;
    }
    
    .notification-toast.show-toast {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }
    
    .notification-toast.success-toast {
      border-left: 5px solid #28a745;
    }
    
    .notification-toast.error-toast {
      border-left: 5px solid #dc3545;
    }
    
    .notification-toast .toast-icon {
      width: 24px;
      height: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 15px;
      flex-shrink: 0;
    }
    
    .notification-toast.success-toast .toast-icon i {
      color: #28a745;
    }
    
    .notification-toast.error-toast .toast-icon i {
      color: #dc3545;
    }
    
    .notification-toast .toast-content {
      flex-grow: 1;
      font-size: 14px;
      font-weight: 500;
      color: #333;
    }
    
    .notification-toast .toast-close {
      width: 24px;
      height: 24px;
      background: none;
      border: none;
      color: #888;
      cursor: pointer;
      margin-left: 10px;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
    }
    
    .notification-toast .toast-close:hover {
      color: #333;
    }


@media (max-width: 1000px) {
    .page-title-contact {
        top: -3vh;
    }
    .min-vh-60 {
        min-height: 0vh !important;
    }
}



@media (max-width: 1200px) {


}

@media (max-width: 1000px) {
    .page-title-contact {
        height: 50vh;
    }
}

    
@media (max-width: 768px) {

}

@media (max-width: 480px) {

.page-title-contact {
    height: 32vh;
}
}


@media (max-width: 450px) {

.page-title-contact {
    height: 40vh;
}

.page-title-contact {
	padding: 20px 0 80px;
}
}

/* Estilos específicos para layout con imagen + tarjetas apiladas */
.contact-card-compact .contact-card-inner {
    padding: 0.85rem 1.25rem;
}

.contact-card-compact .contact-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
}

.contact-card-compact .contact-title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.contact-card-compact .contact-text {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.contact-card-compact .contact-hover-content {
    opacity: 0.7;
    font-size: 0.8rem;
    margin-top: 0;
}

.contact-cards-stack {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 991.98px) {
    .contact-office-image {
        margin-bottom: 2rem;
    }
    .contact-cards-stack .contact-card-inner {
        flex-direction: row;
        text-align: left;
    }
    .contact-card-compact .contact-card-inner {
        padding: 1.25rem 1.5rem;
    }
}