/* CSS - TMA SYSTEM - Estilos Profesionales y Responsivos */

:root {
    --primary-color: #0d1b2a;       /* Azul marino profundo corporativo */
    --secondary-color: #1b263b;     /* Azul noche para contrastes */
    --accent-color: #00b4d8;        /* Azul brillante tecnológico para destaques */
    --accent-hover: #0096c7;        /* Tono hover para elementos interactivos */
    --text-color: #e0e1dd;          /* Texto claro para bloques oscuros */
    --text-dark: #333333;           /* Texto oscuro */
    --bg-light: #f8f9fa;            /* Gris muy claro */
    --bg-white: #ffffff;
    --gold-color: #ffb703;          /* Amarillo/Dorado para estrellas y valores */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --transition-speed: 0.4s;
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--bg-light);
}

body {
    line-height: 1.6;
}

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

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color var(--transition-speed);
}

.whatsapp-float:hover {
    transform: scale(1.18) rotate(10deg);
    background-color: #128c7e;
}

/* Encabezado Principal */
.main-header {
    background-color: rgb(0 0 0);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 10px 0;
}

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

/* Ajuste del LOGO GRANDE solicitado */
.main-logo {
    height: 75px; 
    width: auto;
    display: block;
    transition: transform var(--transition-speed);
}

.main-logo:hover {
    transform: scale(1.04);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color var(--transition-speed);
    position: relative;
    padding: 5px 0;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

/* Sección Hero con fondo hero-bg.png */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--primary-color);
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(240, 248, 255, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 44px;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 19px;
    color: #2b3a4a;
    margin-bottom: 35px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 27, 42, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 150, 199, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Títulos de Secciones */
.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
}

/* Sección de Servicios / Grilla */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* 🚀 Animación cuando el ratón pasa por encima de la tarjeta */
.service-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 35px rgba(13, 27, 42, 0.18);
}

.service-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #0d1b2a;
}

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

/* Efecto zoom de imagen interna al pasar el mouse */
.service-card:hover .service-image-container img {
    transform: scale(1.08);
}

.service-info {
    padding: 25px;
}

.service-info h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.icon-accent {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 22px;
}

.service-info p {
    font-size: 14.5px;
    color: #555;
}

/* Sección Nosotros */
.about-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.about-text h2, .about-team h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p, .about-team p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #cbd5e1;
}

.values-box {
    background-color: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--accent-color);
}

.values-box h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.text-gold {
    color: var(--gold-color);
}

.values-box ul {
    list-style: none;
}

.values-box ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.values-box ul li i {
    color: var(--accent-color);
    margin-right: 10px;
}

.philosophy-card {
    background-color: rgba(0, 180, 216, 0.1);
    padding: 25px;
    border-radius: 6px;
    position: relative;
    margin-top: 30px;
}

.quote-icon {
    font-size: 30px;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: 15px;
    left: 15px;
}

.philosophy-card p {
    font-style: italic;
    padding-left: 20px;
    color: #ffffff;
}

/* Sección de Contacto */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info-card {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-info-card h3 {
    margin-bottom: 25px;
    font-size: 22px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.info-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 3px;
}

.info-item p, .info-item a {
    font-size: 15px;
    color: #fff;
    text-decoration: none;
}

.info-item a:hover {
    color: var(--accent-color);
}

.contact-form-card {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-form-card h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 14.5px;
    transition: border-color var(--transition-speed);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-or-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.form-or-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ccc;
    z-index: 1;
}

.form-or-separator span {
    background-color: var(--bg-light);
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: #777;
    font-size: 12px;
    font-weight: bold;
}

.btn-whatsapp-direct {
    display: block;
    text-align: center;
    background-color: #25d366;
    color: white;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn-whatsapp-direct:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
}

/* Pie de Página */
.main-footer {
    background-color: #09111e;
    color: #64748b;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

.footer-content p {
    margin-bottom: 5px;
}

.footer-content strong {
    color: #fff;
}

/* --- ADAPTACIÓN RESPONSIVA (Media Queries) --- */

@media (max-width: 992px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .main-logo {
        height: 65px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px 0;
    }
    
    .main-nav {
        margin-top: 15px;
    }
    
    .main-nav ul li {
        margin: 0 10px;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn-secondary {
        margin-left: 0;
        width: 100%;
        max-width: 280px;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 280px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}