/* --- Variables y Reset --- */
:root {
    --primary-blue: #0f3d75; /* Azul oscuro Penta */
    --secondary-blue: #1c5ba8; /* Azul más claro */
    --accent-green: #25d366; /* Verde tipo WhatsApp/CTA */
    --accent-green-hover: #1da851;
    --dark-bg: #111111;
    --light-bg: #f4f6f8;
    --text-color: #333;
    --white: #ffffff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden; /* prevent sideways scroll that "pushes" sections off-screen on mobile */
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    /* Avoid edge-clipping on some mobile browsers / notches */
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
}

img {
    max-width: 100%;
    display: block;
}

/* --- Botones --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.navbar .btn {
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.btn-green {
    background-color: var(--accent-green);
    color: var(--white);
}

.btn-green-large {
    background-color: var(--accent-green);
    color: var(--white);
    padding: 15px 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-green:hover, .btn-green-large:hover {
    background-color: var(--accent-green-hover);
}

/* --- Navbar --- */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.logo h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-style: italic;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 92px;
    width: auto;
    flex-shrink: 0;
    max-width: min(320px, 90vw);
    object-fit: contain;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding-top: 50px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 60px;
    gap: 32px;
    flex-wrap: wrap;
}

.hero-text {
    min-width: 0; /* prevent flex overflow clipping on some browsers */
    flex: 1 1 320px;
}

.hero-image {
    flex: 1 1 320px;
}

.hero-title {
    font-family: 'Anton', sans-serif;
    color: var(--white);
    margin: 0 0 20px;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: 0.5px;
    /* keep text inside container even on odd Android viewport rounding */
    max-width: 100%;
}

.hero-title-line {
    display: inline-block;
    text-decoration: none;
    border-bottom: none;
    max-width: 100%;
}

.hero-title-line-1 {
    font-size: clamp(2.2rem, 9vw, 4.5rem);
}

.hero-title-line-2 {
    font-size: clamp(2.8rem, 11vw, 6.25rem);
}

.hero-title-line-3 {
    font-size: clamp(2.4rem, 10vw, 5.4rem);
}

.hero-text h1:not(.hero-title) {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text h1:not(.hero-title) span {
    text-decoration: underline;
    text-decoration-color: var(--accent-green);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 500px;
    overflow-wrap: anywhere;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* Stats Strip */
.stats-strip {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    width: 100%;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    color: var(--white);
    font-weight: bold;
}

.stat-item i {
    color: var(--accent-green);
    margin-right: 8px;
}

/* --- Secciones Generales --- */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.title-white {
    text-align: center;
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

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

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

/* --- Sectores --- */
.card-sector {
    position: relative;
    text-align: center;
    cursor: pointer;
}

.card-sector img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

.card-sector:hover img {
    transform: scale(1.02);
}

.card-sector h3 {
    margin-top: 10px;
    color: var(--primary-blue);
}

.client-logos {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    opacity: 0.6;
    flex-wrap: wrap;
}

/* --- Testimonios --- */
.testimonials {
    background-color: var(--dark-bg);
    color: var(--white);
}

.highlight-text {
    text-align: center;
    color: #ffd700; /* Dorado */
    margin-bottom: 40px;
    text-transform: uppercase;
}

.testimonial-card {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-info img {
    border-radius: 50%;
}

.stars {
    color: #ffd700;
    margin-top: 10px;
}

/* --- Catálogo --- */
.catalog-section {
    background-color: var(--secondary-blue);
}

.catalog-item {
    background: var(--white);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* --- About Split --- */
.split-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-img {
    flex: 1;
}

/* --- Features --- */
.features {
    background-color: var(--light-bg);
    text-align: center;
}

.features-grid {
    margin-top: 40px;
}

.feature-item {
    padding: 20px;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-item h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

/* --- CTA Banner Azul --- */
.cta-banner-blue {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    border-radius: 20px; /* Bordes redondeados como en la imagen */
    margin: 40px 20px; /* Margen externo */
}

.cta-banner-blue h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-banner-blue p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* --- FAQ --- */
.faq details {
    background: var(--white);
    margin-bottom: 10px;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.faq summary {
    font-weight: bold;
    color: var(--primary-blue);
    list-style: none; /* Ocultar triángulo default */
    display: flex;
    justify-content: space-between;
}

.faq summary::after {
    content: '+';
    font-weight: bold;
}

.faq details[open] summary::after {
    content: '-';
}

.faq p {
    margin-top: 10px;
    color: #666;
}


/* --- Footer --- */
.footer-main {
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    text-align: center;
    padding: 60px 0;
    width: 100%;
    margin: 0;
    position: relative;
}

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

.footer-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-images.no-bg {
    background: transparent;
}

.round-img {
    border-radius: 50%;
    border: 3px solid var(--white);
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.footer-content h1 {
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--white);
}

.footer-content p {
    margin-bottom: 30px;
    color: var(--white);
}

.footer-logos {
    margin-top: 50px;
    opacity: 0.7;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-content, .split-container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Old generic h1 scaling isn't needed now that the hero title is responsive */
    
    .hero-image {
        margin-top: 30px;
    }
    
    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .split-container {
        flex-direction: column-reverse; /* Imagen arriba en móvil */
    }
    
}

@media (max-width: 768px) {

    .section {
        padding: 40px 0; 
    }
    
    .container {
        padding: 0 15px; 
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }

    .hero {
        padding-top: 32px;
    }

    .hero-text {
        text-align: center;
    }
    
.navbar {
    width: 100%;
}

.nav-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: center !important;
    text-align: center;
}

.logo {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo img {
    margin: 0 auto;
    display: block;
    height: auto;
    max-height: 104px;
    width: min(260px, 85vw);
    object-fit: contain;
}

.btn-green {
    margin-top: 15px;
}

.hero-title {
    line-height: 0.9;
}

.hero-title-line-1 {
    font-size: clamp(2rem, 11vw, 3.4rem);
}

.hero-title-line-2 {
    font-size: clamp(2.4rem, 13vw, 4.2rem);
}

.hero-title-line-3 {
    font-size: clamp(2.1rem, 12vw, 3.8rem);
}

/* Prevent any stray inline transforms from shifting headlines off-screen on mobile */
h1 { transform: none !important; }
    
   
}
