/* =====================================================
   CENTRO MÉDICO DR. SERVÁN - ESTILOS PRINCIPALES
   ===================================================== */

/* CSS Variables */
:root {
    --primary-color: #e31837;
    --primary-dark: #c21230;
    --secondary-color: #32373c;
    --accent-color: #e31837;
    --white: #ffffff;
    --light-gray: #ffffff;
    --gray: #6c757d;
    --dark-gray: #313131;
    --black: #000000;
    --whatsapp-color: #25d366;
    --shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    max-width: 100vw;
}

*, *::before, *::after {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* =====================================================
   HEADER
   ===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.header-top {
    background-color: var(--primary-color);
    padding: 10px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 25px;
}

.contact-info a,
.contact-info span {
    color: var(--white);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 16px;
}

.social-links a:hover {
    transform: scale(1.2);
}

/* Navbar */
.navbar {
    padding: 15px 0;
    background-color: var(--white);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu > li > a {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    color: var(--secondary-color);
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
}

.nav-menu > li > a i {
    font-size: 10px;
    transition: var(--transition);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown li a {
    display: block;
    padding: 10px 25px;
    font-size: 14px;
    color: var(--dark-gray);
}

.dropdown li a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.nav-cta {
    margin-left: 10px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: var(--transition);
    position: relative;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    margin-top: 120px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    max-width: 700px;
    padding: 60px 0;
}

.slide-subtitle {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    width: fit-content;
}

.slide-content h1 {
    font-size: 52px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slide-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dots .dot.active {
    background-color: var(--white);
    transform: scale(1.2);
}

/* =====================================================
   INFO CARDS
   ===================================================== */

.info-cards {
    position: relative;
    margin-top: -60px;
    z-index: 30;
    padding-bottom: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

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

.info-card.highlight {
    background-color: var(--primary-color);
    color: var(--white);
}

.info-card.highlight h3 {
    color: var(--white);
}

.card-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: rgba(227, 24, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
}

.info-card.highlight .card-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.card-content p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

.info-card.highlight .card-content p {
    color: rgba(255, 255, 255, 0.8);
}

.phone-link {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.phone-link:hover {
    opacity: 0.8;
}

/* =====================================================
   SECTION HEADER
   ===================================================== */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header.left {
    text-align: left;
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-title {
    font-size: 40px;
    margin-bottom: 15px;
}

.section-description {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */

.services {
    padding: 80px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.services-grid .service-card {
    width: calc(25% - 19px);
    min-width: 280px;
}

.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

a.service-card:hover {
    color: inherit;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 106, 171, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-content {
    padding: 25px;
    text-align: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: -50px auto 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow);
}

.service-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-content p {
    font-size: 14px;
    color: var(--gray);
    margin: 0;
}

/* =====================================================
   STATISTICS SECTION
   ===================================================== */

.statistics {
    position: relative;
    padding: 100px 0;
    background-image: url('../images/backgrounds/fondo-estadisticas.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.statistics-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.statistics .container {
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    text-align: center;
    color: var(--white);
}

.stat-item {
    padding: 20px;
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-primary);
    font-size: 30px;
    font-weight: 700;
    display: inline;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 10px;
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */

.testimonials {
    padding: 80px 0;
    background-color: var(--white);
    overflow: hidden;
}

.testimonials-slider {
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 30px;
}

.testimonial-card {
    min-width: calc(33.333% - 20px);
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 40px;
    transition: var(--transition);
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.testimonial-card:hover {
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 25px;
}

.quote-icon {
    font-size: 40px;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--dark-gray);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 3px;
}

.author-info span {
    font-size: 13px;
    color: var(--primary-color);
}

/* =====================================================
   PARTNERS SECTION
   ===================================================== */

.partners {
    padding: 50px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.partners-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-logo {
    opacity: 0.6;
    transition: var(--transition);
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-logo img {
    max-height: 50px;
    width: auto;
}

/* =====================================================
   NEWS SECTION
   ===================================================== */

.news {
    padding: 80px 0;
    background-color: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
}

.news-date .day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* =====================================================
   VIDEO SECTION
   ===================================================== */

.video-section {
    padding: 80px 0;
    background-color: #fff;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */

.contact {
    padding: 80px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
}

.contact-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
    font-size: 15px;
    color: var(--gray);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    font-family: var(--font-secondary);
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: #fff;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* =====================================================
   MAP SECTION
   ===================================================== */

.map-section {
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background-color: var(--secondary-color);
    color: var(--white);
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-col > p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    color: var(--white);
}

.footer-social a[aria-label="WhatsApp"] {
    background-color: #25D366;
}

.footer-social a[aria-label="Facebook"] {
    background-color: #1877F2;
}

.footer-social a[aria-label="Instagram"] {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social a[aria-label="YouTube"] {
    background-color: #FF0000;
}

.footer-social a:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    padding-left: 5px;
}

.schedule li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    opacity: 0.8;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    opacity: 0.8;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-news-item {
    display: flex;
    gap: 15px;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-news-item:hover {
    opacity: 1;
}

.footer-news-item img {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    object-fit: cover;
}

.footer-news-item .news-title {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.footer-news-item .news-date {
    font-size: 12px;
    color: var(--primary-color);
    position: static;
    background: none;
    padding: 0;
}

.footer-all-news {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-all-news:hover {
    color: #fff;
}

.footer-all-news i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.footer-all-news:hover i {
    transform: translateX(5px);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* =====================================================
   WHATSAPP FLOAT BUTTON
   ===================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
    border: none;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* WhatsApp Modal */
.whatsapp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.whatsapp-modal.active {
    display: flex;
}

.whatsapp-modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.whatsapp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: #fff;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s ease;
}

.whatsapp-modal-close:hover {
    background: var(--primary-color);
    color: #fff;
}

.whatsapp-modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 35px;
    color: #fff;
}

.whatsapp-modal-content h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.whatsapp-modal-content p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.whatsapp-modal-content p strong {
    color: var(--primary-color);
}

.whatsapp-modal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 20px 0;
}

.whatsapp-modal-subtitle {
    font-weight: 500;
    color: #333 !important;
    margin-bottom: 15px !important;
}

.whatsapp-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.whatsapp-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #2be071, #15a369);
}

.whatsapp-modal-btn i {
    font-size: 20px;
}

.whatsapp-modal-call {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
}

.whatsapp-modal-call p {
    font-size: 13px;
    color: #666 !important;
    margin-bottom: 10px !important;
}

.whatsapp-modal-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-modal-call-btn:hover {
    background: #a01830;
    transform: translateY(-2px);
}

/* Modal responsive */
@media (max-width: 480px) {
    .whatsapp-modal-content {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .whatsapp-modal-content h3 {
        font-size: 20px;
    }

    .whatsapp-modal-content p {
        font-size: 14px;
    }

    .whatsapp-modal-btn {
        padding: 12px 18px;
        font-size: 15px;
    }

    .whatsapp-modal-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* =====================================================
   BACK TO TOP BUTTON
   ===================================================== */

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */

/* Large Desktop */
@media (min-width: 1200px) {
    .hero {
        margin-top: 120px;
    }
}

/* Tablet Landscape */
@media (max-width: 1199px) {
    .services-grid .service-card {
        width: calc(33.333% - 17px);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Mobile Menu - activar en tablets y móviles */
    .mobile-menu-btn {
        display: flex !important;
        order: 3;
        margin-left: auto;
    }

    .navbar-content {
        position: relative;
    }

    .logo {
        order: 1;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-menu > li > a {
        padding: 15px 0;
        width: 100%;
        justify-content: space-between;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        display: none;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .dropdown li a {
        padding: 10px 0;
    }

    .nav-cta {
        margin: 20px 0 0;
        width: 100%;
    }

    .nav-cta .btn {
        width: 100%;
    }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .slide-content h1 {
        font-size: 40px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .services-grid .service-card {
        width: calc(50% - 13px);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .testimonial-card {
        min-width: calc(50% - 15px);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .header-top .contact-info span {
        display: none;
    }

    .header-top .contact-info {
        gap: 15px;
    }

    .header-top .contact-info a:nth-child(2) {
        display: none;
    }

    .hero {
        min-height: 500px;
        max-height: 700px;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slide-buttons {
        flex-direction: column;
    }

    .slide-buttons .btn {
        width: 100%;
    }

    .slider-controls {
        bottom: 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .section-title {
        font-size: 30px;
    }

    .services-grid .service-card {
        width: 100%;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-suffix {
        font-size: 24px;
    }

    .testimonial-card {
        min-width: 100%;
        padding: 30px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .back-to-top {
        bottom: 85px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo img {
        height: 40px;
    }

    .hero {
        margin-top: 110px;
    }

    .slide-subtitle {
        font-size: 12px;
        padding: 6px 15px;
    }

    .slide-content h1 {
        font-size: 26px;
    }

    .info-card {
        padding: 20px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 20px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .services,
    .testimonials,
    .news,
    .contact {
        padding: 60px 0;
    }

    .statistics {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-item {
        padding: 0;
    }
}

/* =====================================================
   FORZAR MENÚ MÓVIL EN TODOS LOS DISPOSITIVOS TÁCTILES
   ===================================================== */

/* Mostrar hamburguesa en cualquier pantalla menor a 1200px */
@media screen and (max-width: 1199px) {
    /* Prevenir overflow horizontal */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden;
    }

    .header {
        width: 100% !important;
        max-width: 100vw !important;
    }

    .navbar-content {
        width: 100%;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo img {
        max-height: 45px;
        width: auto;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-menu.active {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 25px 30px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        overflow-y: auto;
    }

    /* Prevenir que el slider cause overflow */
    .hero, .hero-slider, .slide {
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    .slide-content {
        padding: 20px;
        max-width: 100%;
    }

    /* Info cards sin overflow */
    .info-cards, .cards-grid {
        max-width: 100%;
        overflow: hidden;
    }

    /* Estadísticas */
    .statistics {
        background-attachment: scroll;
    }
}

/* Asegurar que funcione en dispositivos con touch */
@media (hover: none) and (pointer: coarse) {
    html, body {
        overflow-x: hidden !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
    }

    .nav-menu:not(.active) {
        display: none !important;
    }
}
