/* ============================================
   RESET & BASE
   ============================================ */

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

::selection {
    background: var(--blue);
    color: var(--white);
}

/* ============================================
   VARIABLES
   ============================================ */

:root {
    --blue: #1E5BB8;
    --blue-dark: #0F3D91;
    --blue-light: #3A7BD5;
    --yellow: #FFC107;
    --yellow-dark: #E0A800;
    --white: #FFFFFF;
    --gray-light: #f8f9fa;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --text-dark: #212529;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 35px rgba(30,91,184,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ============================================
   UTILITIES
   ============================================ */

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

.section {
    padding: 80px 0;
}

.title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 48px;
    font-size: 1.1rem;
}

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

.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    min-height: 80px;
}

.logo-texto {
    text-align: right;
    line-height: 1.1;
}

.logo-heavy {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--blue);
    display: block;
}

.logo-tech {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-dark);
    display: block;
    margin-top: -4px;
}

.logo-solutions {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--gray);
    display: block;
    margin-top: 2px;
}

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

.menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: var(--transition);
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu a:hover,
.menu a.active {
    color: var(--blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 20px;
}

.lang-btn:hover {
    transform: scale(1.05);
    color: var(--blue);
}

.lang-btn.active {
    background: var(--blue);
    color: white;
}

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

.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-badge {
    display: inline-block;
    background: var(--blue);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--blue);
}

.hero-text p {
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.hero-placeholder {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

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

.btn {
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

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

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

.btn-secondary:hover {
    background: var(--blue);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   SERVICIOS
   ============================================ */

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

.service-card {
    background: white;
    border: 1px solid #eef2f6;
    padding: 32px 24px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--yellow);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray);
}

/* ============================================
   MARCAS
   ============================================ */

.brands {
    background: var(--gray-light);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    text-align: center;
}

.brand-item {
    background: white;
    padding: 15px;
    border-radius: var(--radius-md);
    font-weight: bold;
    transition: var(--transition);
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--blue);
}

/* ============================================
   ABOUT / QUIÉNES SOMOS
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

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

.feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature span {
    font-size: 1.2rem;
}

.feature h4 {
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.85rem;
    margin: 0;
}

.about-image .image-placeholder {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

/* ============================================
   PORTAFOLIO
   ============================================ */

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

.portfolio-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    background: var(--gray-light);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============================================
   TESTIMONIOS
   ============================================ */

.testimonials {
    background: var(--gray-light);
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--yellow);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--gray);
}

.testimonial-author strong {
    display: block;
    color: var(--blue);
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   RESERVAR CITA
   ============================================ */

.booking-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.booking-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

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

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

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30,91,184,0.1);
}

.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: var(--radius-sm);
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* ============================================
   CONTACTO
   ============================================ */

.contact-section {
    background: var(--gray-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

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

.info-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-card a {
    color: var(--blue);
    text-decoration: none;
}

.info-card a:hover {
    color: var(--yellow);
}

.info-card p {
    color: var(--gray);
    font-size: 0.85rem;
}

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

.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo .logo-heavy {
    color: var(--blue);
    font-size: 1.2rem;
}

.footer-logo .logo-tech {
    color: white;
    font-size: 1.2rem;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--yellow);
}

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

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

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

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

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

.social-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--yellow);
}

.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.85rem;
}

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

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.05);
    background: #20b859;
}

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

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .nav {
        min-height: 70px;
    }
    
    .mobile-menu-btn {
        display: block;
        order: 1;
    }
    
    .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        gap: 0;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .menu.active {
        left: 0;
    }
    
    .menu a {
        padding: 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eef2f6;
    }
    
    .menu a::after {
        display: none;
    }
    
    .language-selector {
        order: 2;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .buttons {
        justify-content: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .booking-form,
    .contact-form {
        padding: 25px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .title {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
    }
    
    .service-card,
    .portfolio-item,
    .testimonial-card {
        padding: 20px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Slide de imagenes
   ============================================ */
.slider {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slides img.active {
  opacity: 1;
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.slider {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slides img.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .slider {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 250px;
    }
}

/* ============================================
   ABOUT IMAGE (Quiénes Somos)
   ============================================ */

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Responsive */
@media (max-width: 768px) {
    .about-img {
        max-width: 100%;
    }
}