/* Custom CSS for Centro de Atencion Psicopedagogica Reynosa */

.map-responsive {
    overflow:hidden;
    padding-bottom:56.25%;
    position:relative;
    height:0;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

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

.map-responsive iframe {
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
    border-radius: 15px;
}

:root {
    --primary-blue: #4a90e2; /* Un azul más vibrante */
    --primary-beige: #f8f0e3; /* Un beige más suave */
    --accent-color: #ff9e6d; /* Color de acento cálido */
    --text-dark: #333;
    --text-light: #666;
    --shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body {
    font-family: 'Nunito', 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Estilos para la sección de héroe */
#hero {
    height: 90vh;
    background-color: var(--primary-beige);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(248, 240, 227, 0.3) 100%);
    z-index: 1;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 500;
}

#hero .btn-primary {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Estilos para las tarjetas de servicios */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
    height: 100%;
    background-color: white;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-color));
    z-index: 1;
}

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

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
    font-size: 1.4rem;
}

.service-icon, .material-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.card:hover .service-icon,
.card:hover .material-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(74, 144, 226, 0.2);
}

/* Estilos para los testimonios */
.testimonial-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    margin: 1rem 0;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--primary-blue);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 20px;
    line-height: 1;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-card cite {
    font-style: normal;
    font-weight: bold;
    color: var(--primary-blue);
    display: block;
}

/* Estilos para botones */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    border-radius: 30px;
    padding: 0.7rem 2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover {
    background-color: #3279b4;
    border-color: #3279b4;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

/* Estilos para la barra de navegación */
.navbar {
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(248, 240, 227, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-light .navbar-brand {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-light .navbar-brand img {
    margin-right: 10px;
    transition: all 0.3s ease;
}

.navbar-light .navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-light .navbar-brand:hover img {
    transform: rotate(10deg);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-blue);
}

.bg-light {
    background-color: var(--primary-beige) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
}

/* Estilos para secciones */
section {
    padding: 6rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: var(--primary-beige);
}

section h2 {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--primary-blue);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

section .text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Estilos para el pie de página */
footer {
    background: linear-gradient(to right, #3a7bd5, #4a90e2) !important;
    padding: 3rem 0 2rem;
    color: white;
}

footer p {
    margin-bottom: 1.5rem;
}

footer a {
    color: white !important;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Estilos para los iconos de redes sociales */
.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* Estilos para enlaces de WhatsApp */
a.whatsapp-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

a.whatsapp-link i {
    color: #25D366;
    margin-right: 5px;
    font-size: 1.2rem;
}

a.whatsapp-link:hover {
    color: #25D366;
    transform: scale(1.05);
}

/* Estilos para la sección de contacto */
.contact-info {
    background-color: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-info:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.contact-icon {
    color: var(--primary-blue);
    background-color: rgba(74, 144, 226, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-info:hover .contact-icon {
    transform: scale(1.1);
    background-color: rgba(74, 144, 226, 0.2);
}

/* Animaciones y efectos */
.fade-in {
    animation: fadeIn 1s ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

/* Animaciones con retraso */
[style*="animation-delay"] {
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Efecto de pulsación para elementos interactivos */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Efecto de desplazamiento suave */
html {
    scroll-behavior: smooth;
}

/* Efecto de resaltado para elementos seleccionados */
.highlight {
    position: relative;
    z-index: 1;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(255, 158, 109, 0.3);
    z-index: -1;
    transition: height 0.3s ease;
}

.highlight:hover::before {
    height: 100%;
}