/* ===== RESET Y CONFIGURACIÓN BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #ffffff;
    font-weight: 400;
    font-size: 14px; /* Tamaño base más pequeño como Vestas */
}

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

/* ===== NAVEGACIÓN ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.75rem 0; /* Reducido de 1rem */
    transition: all 0.3s ease;
    border-bottom: 1px solid #e5e5e5; /* Más sutil */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: 160px; /* Aumentado para mejor visibilidad */
    height: auto;
    max-height: 55px;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem; /* Reducido de 2.5rem */
}

.nav-link {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px; /* Más pequeño como Vestas */
    letter-spacing: 0.3px;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #0052a3;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0052a3;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background: #0052a3;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: 
        linear-gradient(135deg, rgba(0, 82, 163, 0.85) 0%, rgba(0, 123, 255, 0.85) 100%),
        url('../images/grandescorrectivosnoche.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/grandescorrectivosnoche.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    z-index: -1;
    animation: subtleGlow 22s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    0% { transform: scale(1); filter: brightness(1); }
    100% { transform: scale(1.03); filter: brightness(1.1); }
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== SECCIÓN INFORMACIÓN DE CONTACTO ===== */
.contact-info-section {
    background: #f8f9fa;
}

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

.contact-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecf0f1;
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0052a3, #004c99);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #0052a3;
}

.contact-card.special-service {
    background: #ffffff;
    border: 2px solid #0052a3;
}

.contact-card.special-service .contact-icon {
    background: linear-gradient(135deg, #0052a3, #004c99);
    color: white;
}

.contact-card.special-service .contact-details h3 {
    color: #0052a3;
    font-weight: 700;
}

.contact-card.special-service:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 82, 163, 0.2);
    border-color: #007bff;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0052a3, #004c99);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ===== SECCIÓN FORMULARIO DE CONTACTO ===== */
.contact-form-section {
    background: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-container {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecf0f1;
}

.form-container h2 {
    color: #0052a3;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2c3e50;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0052a3;
    box-shadow: 0 0 0 3px rgba(0, 82, 163, 0.1);
}

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

.btn-submit {
    background: #0052a3;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #004c99;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 82, 163, 0.3);
}

.btn-submit i {
    font-size: 1.1rem;
}

/* ===== SECCIÓN MAPA ===== */
.map-container {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid #ecf0f1;
}

.map-container h2 {
    color: #0052a3;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #ecf0f1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.map-link:hover {
    transform: translateY(-2px);
}

.map-link:hover .map {
    border-color: #007bff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

#map-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 1.1rem;
}

#map-placeholder i {
    font-size: 3rem;
    color: #0052a3;
    margin-bottom: 1rem;
}

#map-placeholder p {
    margin: 0.5rem 0;
    text-align: center;
}

.map-cta {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #007bff;
    color: white;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.map-link:hover .map-cta {
    background: #0056b3;
    transform: scale(1.05);
}

/* ===== FOOTER ===== */
.footer {
    background: #2c3e50;
    color: #ffffff;
    padding: 3rem 0 1rem;
    border-top: 3px solid #0052a3;
}

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

.footer-section h3,
.footer-section h4 {
    color: #0052a3;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #0052a3;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #0052a3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #004c99;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* ===== BOTÓN WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: block;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

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

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        border-top: 1px solid #0052a3;
    }

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

    .page-header h1 {
        font-size: 2.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

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

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .contact-card {
        padding: 2rem;
        flex-direction: column;
        text-align: center;
    }

    .form-container {
        padding: 2rem;
    }

    .map-container {
        padding: 2rem;
    }
} 
