/* ===== VARIABLES ===== */
:root {
    --primary-dark: #00426c;       /* Azul oscuro del logo */
    --primary-light: #1cc7ec;      /* Azul claro / celeste */
    --accent: #1cc7ec;              /* Mismo celeste para acentos */
    --text-dark: #333333;
    --text-light: #ffffff;
    --gray-bg: #f8f9fa;
    --shadow: 0 5px 20px rgba(0, 66, 108, 0.1);
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* ===== UTILITIES ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-light);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: white !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 66, 108, 0.1);
    transition: all 0.3s ease;
    transform: translateY(0) !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo img {
    height: 140px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    transition: var(--transition);
    font-size: 1.1rem;
    background: transparent;
}

.nav-menu a:hover {
    background: var(--primary-light);
    color: white;
    box-shadow: 0 0 15px rgba(28, 199, 236, 0.3);
}

.nav-menu a.active {
    background: var(--primary-light);
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary-dark);
    cursor: pointer;
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20b859;
    color: white;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

/* ===== HERO SECTION ===== */
.hero {
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Hero específico para cada página */
.hero-home {
    background: linear-gradient(135deg, rgba(0, 66, 108, 0.85), rgba(0, 90, 148, 0.85)), url('../images/hero-home-bg.jpg');
}

.hero-about {
    background: linear-gradient(135deg, rgba(0, 66, 108, 0.85), rgba(0, 90, 148, 0.85)), url('../images/hero-about-bg.jpg');
}

.hero-services {
    background: linear-gradient(135deg, rgba(0, 66, 108, 0.85), rgba(0, 90, 148, 0.85)), url('../images/hero-services-bg.jpg');
}

.hero-contact {
    background: linear-gradient(135deg, rgba(0, 66, 108, 0.85), rgba(0, 90, 148, 0.85)), url('../images/hero-contact-bg.jpg');
}

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

.hero h1 span {
    color: var(--primary-light);
    display: block;
    text-shadow: 0 0 15px rgba(28, 199, 236, 0.5);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #15b0d4;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(28, 199, 236, 0.4);
}

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

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(28, 199, 236, 0.3);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--gray-bg);
    border-radius: 8px;
    transition: var(--transition);
}

.stat-item:hover {
    box-shadow: 0 0 20px rgba(28, 199, 236, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-light);
    display: block;
    text-shadow: 0 0 10px rgba(28, 199, 236, 0.3);
}

.stat-label {
    color: var(--primary-dark);
    font-weight: 500;
}

/* ===== MISSION & VISION ===== */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

.mv-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(28, 199, 236, 0.2);
}

.mv-card h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mv-card h3 i {
    color: var(--primary-light);
    transition: var(--transition);
}

.mv-card:hover h3 i {
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--primary-light);
}

.mv-card p {
    color: #666;
    line-height: 1.8;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(28, 199, 236, 0.2);
}

.service-image {
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

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

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

.service-content {
    padding: 25px;
}

.service-content h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.service-link:hover {
    gap: 10px;
    color: var(--primary-dark);
    text-shadow: 0 0 8px rgba(28, 199, 236, 0.3);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
}

.contact-info:hover {
    box-shadow: 0 10px 30px rgba(28, 199, 236, 0.2);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-light);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateX(5px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-light);
    transition: var(--transition);
}

.info-item:hover .info-icon {
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: 0 0 20px var(--primary-light);
}

.info-text h4 {
    margin-bottom: 5px;
    color: var(--primary-light);
}

.info-text p,
.info-text a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.info-text a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 8px rgba(28, 199, 236, 0.5);
}

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

.contact-form:hover {
    box-shadow: 0 10px 30px rgba(28, 199, 236, 0.15);
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(28, 199, 236, 0.2);
}

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

/* ===== MAP SECTION ===== */
.map-section {
    padding: 0 0 80px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.map-container:hover {
    box-shadow: 0 10px 30px rgba(28, 199, 236, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

/* ===== SOCIAL MEDIA BUTTONS ===== */
.social-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-btn.facebook {
    background: #3b5998;
}

.social-btn.instagram {
    background: #e4405f;
}

.social-btn.email {
    background: var(--primary-dark);
    border: 1px solid var(--primary-light);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(28, 199, 236, 0.4);
}

/* ===== FOOTER ===== */
footer {
    background: white;
    padding: 60px 0 0;
    transition: var(--transition);
}

.footer-logo {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.footer-logo img {
    height: 240px;
    width: auto;
    display: inline-block;
    transition: var(--transition);
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-divider {
    width: 100%;
    height: 4px;
    background: var(--primary-light);
    box-shadow: 0 0 15px var(--primary-light);
    margin: 0;
}

.footer-dark {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 50px 0 20px;
}

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

.footer-col {
    text-align: left;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--primary-light);
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-light);
    box-shadow: 0 0 10px var(--primary-light);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--primary-light);
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

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

    .nav-menu a {
        display: block;
        padding: 12px;
        color: var(--primary-dark);
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h1 span {
        display: inline;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .contact-grid,
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .logo img {
        height: 100px;
    }

    .footer-logo img {
        height: 180px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        line-height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .contact-info,
    .contact-form {
        padding: 25px;
    }

    .logo img {
        height: 80px;
    }

    .footer-logo img {
        height: 140px;
    }
}

/* ===== GARANTIZAR QUE LAS IMÁGENES SE MUESTREN ===== */
img {
    opacity: 1 !important;
    display: block !important;
    max-width: 100%;
    height: auto;
}