﻿/* Custom CSS for Tamayo Especialistas Website */

html {
    scroll-behavior: smooth;
}



/* Root Variables */
:root {
    --primary-color: #6EC1E4;
    --secondary-color: #21bbde;
    --accent-color: #21bbde;
    --text-color: #f8f9fa;
    --text-light: #3d3d3d;
    --background-light: #f8f9fa;
    --background-dark: #0D6CBF;
    --border-color: #ddd;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Global Styles */
body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f8f9fa;
}


.hero-section {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-track {
    display: flex;
    width: 600%; /* 6 slides × 100% */
    height: 100%;
    animation: slideShow 60s infinite; 
}

.hero-slide {
    width: 16.666%; /* 100% / 6 slides */
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

@keyframes slideShow {
    0% {
        transform: translateX(0);
    }

    16.666% {
        transform: translateX(-16.666%);
    }

    33.333% {
        transform: translateX(-33.333%);
    }

    50% {
        transform: translateX(-50%);
    }

    66.666% {
        transform: translateX(-66.666%);
    }

    83.333% {
        transform: translateX(-83.333%);
    }

    100% {
        transform: translateX(0);
    }
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.container {
    z-index: 3;
}

/* Pausa la animación al hacer hover */
.hero-carousel:hover .hero-track {
    animation-play-state: paused;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section h4 {
        font-size: 1.1rem;
    }

    .hero-section h3 {
        font-size: 1.2rem;
    }
}

/* Testimonial Section */
.testimonial-section {
    background: var(--secondary-color);
    color: white;
    padding: 80px 0;
}

.testimonial {
    border: none;
}

    .testimonial p {
        font-size: 1.3rem;
        font-style: italic;
        line-height: 1.8;
    }

.blockquote-footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

    .blockquote-footer strong {
        color: white;
        font-size: 1.2rem;
    }

.contact-form-card {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

    .contact-form-card .form-control,
    .contact-form-card .form-select {
        background: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 8px;
        padding: 12px 15px;
        font-size: 1rem;
    }

        .contact-form-card .form-control:focus,
        .contact-form-card .form-select:focus {
            background: white;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
            color: #f8f9fa;
        }

    .contact-form-card .btn-light {
        background: white;
        color: var(--secondary-color);
        border: none;
        padding: 12px 30px;
        font-weight: 600;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .contact-form-card .btn-light:hover {
            background: #f8f9fa;
            transform: translateY(-1px);
        }



/* Services Overview */
.services-overview {
    padding: 60px;
    background: white;
    color: var(--text-color);
}


    .services-overview h2 {
        font-weight: 700;
        font-size: 2.8rem;
        line-height: 1.3;
    }

/* Service Cards */
.services-cards {
    padding: 0;
}

.service-card {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    position: relative;
    transition: transform 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-5px);
    }

.service-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.service-content {
    z-index: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .btn-outline-light:hover {
        background: white;
        color: var(--text-dark);
        transform: translateY(-2px);
    }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 100px 0;
    color: white;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: white;
}

.cta-section .blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
}

.cta-section h4 {
    color: #ffd700;
    font-weight: 600;
    font-size: 1.5rem;
    color: white;
}

.cta-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: none;
}

    .cta-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

.cta-icon {
    margin-bottom: 1.5rem;
}

.cta-card h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background: white;
}

    .partners-section h3 {
        text-align: center;
        color: var(--primary-color);
        font-weight: 600;
        margin-bottom: 3rem;
        font-size: 2rem;
    }

.partners-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
    gap: 3rem;
    align-items: center;
}

    .carousel-track img {
        height: 80px;
        width: auto;
        object-fit: contain;
        filter: grayscale(100%);
        opacity: 0.7;
        transition: all 0.3s ease;
    }

        .carousel-track img:hover {
            filter: grayscale(0%);
            opacity: 1;
            transform: scale(1.1);
        }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .carousel-btn:hover {
        background: var(--secondary-color);
        transform: translateY(-50%) scale(1.1);
    }

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: white;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section h4 {
        font-size: 1.2rem;
    }

    .hero-section h3 {
        font-size: 1.4rem;
    }

    .services-overview h2 {
        font-size: 2.2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .service-card {
        min-height: 300px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
    }

        .hero-section h1 {
            font-size: 2rem;
        }

    .testimonial-section {
        padding: 60px 0;
    }

    .cta-section {
        padding: 60px 0;
    }

    .partners-section {
        padding: 40px 0;
    }
}

/* Additional Bootstrap Overrides */
.z-3 {
    z-index: 3 !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

/* Carousel Fade Effect */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

    .carousel-fade .carousel-item.active,
    .carousel-fade .carousel-item-next.carousel-item-left,
    .carousel-fade .carousel-item-prev.carousel-item-right {
        opacity: 1;
    }

.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-right {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-left,
.carousel-fade .active.carousel-item-prev {
    transform: none;
}


/* Contenedor del formulario corto */
.quick-form-container {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 8px;
    max-width: 300px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin: 20px auto 0 auto; /* se ubica al final con margen superior */
    z-index: 10;
    border-radius: 14px;
}

/* Formularios cortos */
.quick-form label {
    font-weight: bold;
    font-size: 14px;
}

.quick-form .form-control {
    border-radius: 14px;
    font-size: 14px;
    padding: 6px 10px;
}
/* Botón */
.quick-form button {
    background-color: #1cbde2; /* tu color azul */
    border: none;
    border-radius: 14px;
    padding: 8px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

    .quick-form button:hover {
        background-color: #17a2b8;
    }
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    background: #fff;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .whatsapp-float img {
        width: 40px;
        height: 40px;
        display: block;
    }

    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 14px rgba(0,0,0,0.4);
    }

/* Header */
.site-header {
    background: transparent !important;
    box-shadow: transparent !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navbar container */
.navbar .container {
    max-width: 1200px;
    margin: auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent !important;
}

/* Logo */
.logo {
    max-height: 50px; /* ✅ más controlado */
    width: auto;
    display: block;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    background: transparent;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

    .nav-link:hover {
        color: #fff;
    }

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    min-width: 180px;
}

    .dropdown-menu a {
        padding: 0.6rem 1rem;
        color: #007BFF;
        text-decoration: none;
    }

        .dropdown-menu a:hover {
            background: transparent;
        }

.nav-dropdown:hover .dropdown-menu {
    display: flex;
}

/* Botón hamburguesa */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Menú móvil */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: transparent;
    padding: 1rem;
}

    .mobile-menu a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
        text-decoration: none;
        color: #007BFF;
    }
}

.site-header {
    position: absolute; /* se superpone */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* encima del carrusel */
    background: transparent; /* transparente para que se vea el fondo */
}

    .site-header .nav-link {
        color: white; /* links blancos para verse sobre la imagen */
    }

/* Estilos adicionales para el header transparente superpuesto */
.site-header {
    padding: 10px 0;
    background: transparent;
}

    .site-header:hover {
        background: rgba(0, 0, 0, 0.3) !important;
        background: transparent;
    }

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

    .nav-link:hover {
        color: #f8f9fa !important;
        transform: translateY(-1px);
    }

.logo {
    max-height: 50px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.hero-section {
    padding-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 0;
        background: transparent;
    }

    .logo {
        max-height: 40px;
    }
}


/* Forzar transparencia del card del formulario en #formulario */
#formulario .bg-white.rounded-3.p-4.shadow-lg {
    background: rgba(255, 255, 255, 0.1) !important; /* ajusta 0.35 a tu gusto */
    background-color: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.icono-filosofia {
    width: 70px;
    height: 80px;
    object-fit: cover; /* recorta si no es cuadrada */
    background: transparent; 
}

/* Iconos de las secciones Filosofía / Propósito */
.icon-wrapper img {
    width: 70px; /* tamaño fijo del ícono */
    height: 80px; /* lo hacemos cuadrado */
    object-fit: contain; /* mantiene la proporción dentro del cuadro */
    transition: transform 0.3s ease; /* efecto al pasar el mouse */ 
}

    .icon-wrapper img:hover {
        transform: scale(1.1); /* zoom suave al hover */
    }

/* Botones uniformes en la sección de seguros */
#seguros .btn {
    display: inline-block;
    min-width: 220px; /* ancho mínimo para que todos se vean iguales */
    padding: 12px 20px; /* espacio interno */
    font-size: 1rem; /* tamaño del texto */
    border-radius: 25px; /* bordes redondeados */
    text-align: center;
    white-space: nowrap; /* evita que se parta el texto */
}

/* Para que todos los botones queden a la misma altura en cada columna */
#seguros .col-lg-6 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seguro-img {
    width: 100%;
    max-width: 480px; /* control de tamaño uniforme */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.contact-container {
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.contact-header {
    background: linear-gradient(135deg, var(--primary-color), #2c8daa);
    color: white;
    padding: 2rem;
    text-align: center;
}

    .contact-header h1 {
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 2.2rem;
    }

    .contact-header p {
        opacity: 0.9;
        font-size: 1.1rem;
    }

.contact-content {
    padding: 3rem 2rem;
}

.contact-info {
    padding-right: 2rem;
}

    .contact-info h2 {
        color: var(--secondary-color);
        font-weight: 600;
        margin-bottom: 2rem;
        position: relative;
        padding-bottom: 15px;
    }

        .contact-info h2:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: var(--primary-color);
            border-radius: 2px;
        }

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    transition: transform 0.3s;
}

    .contact-method:hover {
        transform: translateX(5px);
    }

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(33, 187, 222, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.contact-details h3 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-details p {
    margin-bottom: 0;
    line-height: 1.5;
}

.contact-form {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.form-title {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-control, .form-select {
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    transition: all 0.3s;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(33, 187, 222, 0.2);
    }

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

    .btn-primary:hover {
        background: #1aa5c7;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(33, 187, 222, 0.3);
    }

.contact-footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .contact-info {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .contact-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-method {
        flex-direction: column;
        text-align: center;
    }

    .icon-wrapper {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
/* Base */

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
}

.nav-link:hover {
  color: #21bbde;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  background: #111;
  padding: 10px;
  top: 100%;
  left: 0;
  flex-direction: column;
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
}

/* Botón hamburguesa (oculto en desktop) */
.mobile-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column; /* para que los links queden en columna */
        background: rgba(0, 0, 0, 0.8); /* o el color que quieras */
        position: absolute;
        top: 60px; /* debajo del header */
        left: 0;
        width: 100%;
        padding: 1rem;
    }
        .nav-menu.active {
            display: flex; /* se activa al dar clic */
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(2px);
        }

  .mobile-toggle {
    display: block; /* se muestra el botón en móvil */
  }

  /* Dropdowns en móvil */
    .nav-dropdown .dropdown-menu {
        position: static;
        display: none;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(2px);
        margin-top: 5px;
    }

  .nav-dropdown.open .dropdown-menu {
    display: flex;
  }
}

/* Ocultar checkbox */
.menu-toggle, .drop-toggle {
    display: none;
}

/* Menú horizontal en desktop */
.nav-menu {
    display: flex;
    gap: 1rem;
}

/* Dropdown oculto */
.dropdown-menu {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.8);
    position: absolute;
    margin-top: .5rem;
    padding: .5rem;
    border-radius: .5rem;
}

/* Mostrar dropdown cuando está checked */
.drop-toggle:checked + .nav-link + .dropdown-menu {
    display: flex;
}

/* Estilos móvil */
.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: .5rem;
        background: rgba(0,0,0,0.9);
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 1rem;
    }

    /* Mostrar menú cuando está marcado */
    .menu-toggle:checked + .mobile-toggle + .nav-menu {
        display: flex;
    }

    /* Dropdown en móvil se muestra dentro del flujo */
    .dropdown-menu {
        position: relative;
        background: transparent;
    }
}

/* Opciones desplegadas del RadzenDropDown */
.rz-dropdown-panel .rz-dropdown-item {
    color: #21bbde !important; /* Color del texto */ 
}

    /* Opción al pasar el mouse */
    .rz-dropdown-panel .rz-dropdown-item:hover {
        color: #fff !important;
    }

/* Texto seleccionado dentro del input */
.rz-dropdown .rz-dropdown-label {
    color: #21bbde !important;
}

/* ----- Overrides robustos para Radzen DropDown ----- */
/* Apunta a varias variantes (items, listas, li y todos sus hijos) */
.rz-dropdown-panel .rz-dropdown-item,
.rz-dropdown-panel .rz-dropdown-item *,
.rz-dropdown-panel .rz-list .rz-listitem,
.rz-dropdown-panel .rz-list .rz-listitem *,
.rz-dropdown-panel li,
.rz-list .rz-listitem,
.rz-list .rz-listitem * {
    color: #21bbde !important; /* texto azul */
    background-color: #ffffff !important; /* fondo blanco */
}

    /* hover / seleccionado */
    .rz-dropdown-panel .rz-dropdown-item:hover,
    .rz-dropdown-panel .rz-dropdown-item.rz-state-highlight,
    .rz-dropdown-panel .rz-list .rz-listitem:hover,
    .rz-dropdown-panel .rz-list .rz-listitem.rz-state-highlight {
        color: #ffffff !important;
    }

/* Texto mostrado en el control (placeholder / label) */
.rz-dropdown .rz-dropdown-label,
.rz-dropdown .rz-placeholder,
.rz-dropdown .rz-dropdown-label *,
.rz-dropdown .rz-placeholder * {
    color: #21bbde !important;
}
