/* Estilos Sección Contacto */
.contact {
    /* Estilos generales de la sección si son necesarios */
    /* padding: 80px 0; */ /* Heredado de section en base.css */
    background-color: var(--light-color); /* Fondo */
}

.contact-container {
    display: grid;
    grid-template-columns: 3fr 2fr; /* Formulario más ancho que info */
    gap: 40px; /* Espacio aumentado */
    margin-bottom: 60px; /* Espacio antes del mapa */
}

/* Tarjeta del Formulario */
.contact-form-card {
    background-color: #fff;
    border-radius: 15px; /* Más redondeado */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.form-header { /* Cabecera del formulario */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 30px; /* Padding ajustado */
    display: flex;
    align-items: center;
}

.form-icon { /* Icono en la cabecera */
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 12px; /* Cuadrado redondeado */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-right: 15px;
    flex-shrink: 0;
}

.form-header h3 {
    margin: 0;
    font-size: 1.5rem; /* Tamaño ajustado */
    font-weight: 600;
}

/* Contenedor del formulario */
.form-styled { /* Clase de components/forms.css */
    padding: 30px 35px; /* Padding ajustado */
}

/* Estilos para el botón de enviar del formulario de contacto */
.form-submit {
    margin-top: 30px;
}

.form-submit .btn-primary {
    display: inline-block;
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color, #00a0e9));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
    text-align: center;
}

.form-submit .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: left 0.6s ease;
}

.form-submit .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
}

.form-submit .btn-primary:hover::before {
    left: 100%;
}

.form-submit .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

/* Tarjeta de Información de Contacto */
.contact-info-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    height: fit-content; /* Ajustar altura al contenido */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.info-card-header { /* Cabecera de la info */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.info-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.info-card-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    z-index: 1;
}

.info-card-header h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.info-card-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.contact-info-list { /* Contenido de la info */
    padding: 30px 35px;
}

.contact-info-item { /* Cada bloque de info (dirección, tel, email) */
    display: flex;
    align-items: flex-start; /* Alinear arriba */
    margin-bottom: 30px; /* Más espacio */
    transition: transform 0.3s ease;
    padding: 5px;
    border-radius: 8px;
}

.contact-info-item:hover {
    transform: translateX(5px);
    background-color: rgba(var(--primary-rgb), 0.03);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.info-icon { /* Icono de cada item */
    width: 50px; /* Más grande */
    height: 50px;
    background-color: rgba(var(--primary-rgb), 0.1);
    border-radius: 12px; /* Coherente con cabecera */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    margin-right: 20px; /* Más espacio */
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    border-radius: 12px;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.info-icon i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-info-item:hover .info-icon::before {
    opacity: 1;
}

.contact-info-item:hover .info-icon i {
    color: white;
    transform: scale(1.2);
}

.info-content { /* Texto de cada item */
    flex: 1;
    padding: 5px 0;
}

.info-content h4 { /* Título del item (ej: Dirección) */
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info-item:hover .info-content h4 {
    color: var(--primary-color);
}

.info-content p, 
.info-content address,
.info-content a {
    margin: 0;
    color: var(--grey-color);
    line-height: 1.6;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.info-content address {
    font-style: normal;
}

.info-content a {
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.info-content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.info-content a:hover::after {
    width: 100%;
}

/* Redes Sociales en Tarjeta Info */
.social-media-contact {
    padding: 25px 35px; /* Padding ajustado */
    border-top: 1px solid #f0f0f0;
    margin-top: 30px; /* Separar de los items */
}

.social-media-contact h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.social-icons { /* Contenedor de iconos sociales */
    display: flex;
    gap: 12px;
}

.social-icon { /* Cada icono social */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Sección del Mapa */
.map-section {
    margin-top: 60px;
}

.map-header { /* Cabecera del mapa */
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.map-icon { /* Icono junto al título del mapa */
    width: 60px; /* Más grande */
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px; /* Coherente */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
    color: white;
}

.map-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--dark-color);
    font-weight: 600;
}

.map-container { /* Contenedor principal del mapa */
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
    /* height: 450px; */ /* Eliminamos altura fija */
    background-color: var(--white); /* Añadimos fondo para que se vea la caja */
    display: flex; /* Usamos flexbox */
    flex-direction: column; /* Elementos uno debajo del otro */
}

/* Ajustamos el contenedor del iframe */
.map {
    width: 100%;
    height: 450px; /* Damos la altura al iframe */
    flex-shrink: 0; /* Evitamos que se encoja */
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilos para la caja de información */
.map-info {
    padding: 25px 30px; /* Espaciado interno */
}

.map-info-content h4 {
    margin: 0 0 10px; /* Espacio bajo el título */
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.map-info-content h4 i {
    color: var(--primary-color);
}

.map-info-content p {
    margin-bottom: 20px;
    color: var(--grey-color);
    line-height: 1.6;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-map:hover {
    background-color: var(--primary-dark);
}

/* Caja de info sobre el mapa (si se usa) */
/* .map-overlay, .map, .map-info ... si se necesita un diseño más complejo */

/* CTA al final de la página de contacto */
.contact-cta {
    margin-bottom: 60px; /* Espacio inferior */
    text-align: center;
    /* Estilos adicionales si es una caja específica */
}

/* Nota: Estilos responsivos irán en responsive.css */ 