:root {
    --primary-color: #2a92d6;
    --secondary-color: #2a92d6;
    --accent-color: #1a6ca8;
    --text-color: #2C3E50;
    --light-gray: #ECF0F1;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Navbar */
.navbar {
    background: var(--white);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nombre-logo {
    height: 40px !important;
    margin-left: 10px;
}

.logo-link h1 {
    margin-left: 10px;
    font-size: 2.2rem;
    color: #0066cc;
    font-family: 'Caveat', 'Segoe Script', 'Brush Script MT', cursive;
    font-weight: 700;
    font-style: normal;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 71px; /* altura del navbar */
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
                url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: calc(100vh - 71px);
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #2980b9;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--white);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(42, 146, 214, 0.2);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Specialists Section */
.specialists {
    padding: 5rem 0;
    background: var(--light-gray);
}

.specialists h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.specialist-card {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.specialist-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: #ddd;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: var(--white);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.client-info {
    margin-top: 1rem;
}

.stars {
    color: #f1c40f;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--light-gray);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 2rem;
}

.contact-info p {
    margin: 0;
    font-size: 1rem;
}

.contact-form {
    display: grid;
    gap: 1rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

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

.contact-form .cta-button {
    margin-top: 1rem;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 45px;
}

.contact-form .cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loader {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.button-loader i {
    font-size: 1.2rem;
}

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

.fa-spinner {
    animation: spin 1s linear infinite;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.map-container {
    margin-top: 3rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* Social Media Floating Menu */
.social-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-float-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-float-item span {
    margin-left: 10px;
    display: none;
    white-space: nowrap;
}

.social-float-item:hover span {
    display: inline-block;
}

.social-float-item:hover {
    padding-right: 20px;
    transform: translateX(-10px);
}

.social-float-item.whatsapp {
    background: #25D366;
}

.social-float-item.facebook {
    background: #1877F2;
}

.social-float-item.instagram {
    background: #E4405F;
}

.social-float-item i {
    font-size: 24px;
    width: 24px;
    text-align: center;
}

/* Footer Styles */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-links .facebook {
    background: #1877F2;
}

.social-links .instagram {
    background: #E4405F;
}

.social-links .whatsapp {
    background: #25D366;
}

/* Responsive Design */
@media (max-width: 974px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        text-align: center;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .logo img {
        height: 40px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .navbar .container {
        padding: 0.5rem 1rem;
    }

    .hero {
        margin-top: 61px; /* altura ajustada del navbar en móvil */
        height: calc(100vh - 61px);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .services-grid,
    .specialists-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        margin-top: 2rem;
    }
    
    .contact-info .info-item {
        padding: 0.8rem;
    }
}

/* Responsive Social Media */
@media (max-width: 768px) {
    .social-float {
        bottom: 20px;
        top: auto;
        right: 20px;
        transform: none;
        flex-direction: row;
    }

    .social-float-item {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .social-float-item:hover {
        padding-right: 10px;
        transform: translateY(-5px);
    }

    .social-float-item span {
        display: none !important;
    }

    .social-float-item i {
        font-size: 20px;
    }
}
