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

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Ensure all form elements use DM Sans font */
input, button, textarea, select {
    font-family: 'DM Sans', sans-serif;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.logo-img {
    max-width: 174px;
    height: 52px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.contact-btn {
    background: #921212;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.contact-btn:hover {
    background: #7a0f0f;
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* ========================================
   HERO SECTIONS
   ======================================== */
.hero {
    padding: 10rem 0 8rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Homepage Hero specific */
.hero:not(.hero--compact) {
    padding: 7rem 0 6rem;
}

.hero--compact {
    min-height: 50vh;
    padding: 8rem 0 2rem;
}

.hero--compact .hero-container {
    min-height: auto;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-content--centered {
    width: 1200px;
    max-width: 1200px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: #921212;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

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

.hero-img {
    width: 300px;
    height: 290px;
    object-fit: contain;
    border-radius: 10px;
}

/* ========================================
   SECTION BASE STYLES
   ======================================== */
.section {
    background: white;
    padding: 4rem 0;
}

.section--alt {
    background: #f8f9fa;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #921212;
    margin: 1rem auto 0;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Para párrafos que van de punta a punta pero con texto centrado */
.section-container > p {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* ========================================
   GRID SYSTEM
   ======================================== */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.grid--cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.grid--values {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ========================================
   CARD COMPONENTS
   ======================================== */
.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card--compact {
    border-radius: 10px;
    padding: 2rem;
}

.card--compact h3 {
    color: #921212;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card--compact p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========================================
   TEAM CARDS
   ======================================== */
.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #921212;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    justify-content: center;
}

.team-name {
    font-size: 1.3rem;
    display: flex;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    gap: 8px;
}

.linkedin-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.linkedin-btn:hover {
    opacity: 0.7;
}

.linkedin-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.team-role {
    font-size: 1rem;
    color: #921212;
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.service-description {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 2px solid #f5f5f5;
}

.content-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2rem;
}

.content-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #921212;
    margin: 1rem auto 0;
}

.content-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Para párrafos dentro de content-section que van de punta a punta */
.content-section > p {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 1.5rem;
}

.content-highlight strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* ========================================
   HOMEPAGE SPECIFIC STYLES
   ======================================== */
/* Services Section - Homepage specific */
.services {
    background: white;
    padding: 24px 0px 4rem 8px;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.services-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

.services-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #921212;
    margin: 1rem auto 0;
}

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

/* Service Cards - Homepage specific */
.service-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.service-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Solutions Section - Homepage specific */
.solutions {
    background: #f8f9fa;
    padding: 4rem 0;
}

.solutions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.solutions-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}

.solutions-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #921212;
    margin: 1rem auto 0;
}

.solutions-content {
    margin: 2rem 0;
}

.solutions-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.learn-more-btn {
    background: transparent;
    color: #921212;
    border: 2px solid #921212;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
}

.learn-more-btn:hover {
    background: #921212;
    color: white;
}

/* ========================================
   LEGACY SECTIONS (for backward compatibility)
   ======================================== */

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background: #680000;
    color: white;
    padding: 4rem 0;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-input,
.contact-textarea {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    background: white;
    color: #333;
    width: 400px;
    max-width: 100%;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.contact-submit {
    background: #921212;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 1rem;
    width: 400px;
    max-width: 100%;
}

.contact-submit:hover {
    background: #7a0f0f;
}

.form-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    width: 400px;
    max-width: 100%;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

.form-success h3 {
    color: #155724;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: 'DM Sans', sans-serif;
}

.form-success p {
    color: #155724;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    font-family: 'DM Sans', sans-serif;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #f8f9fa;
    color: #333;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-img {
    max-width: 160px;
    height: 42px;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #921212;
}

.footer-contact p {
    color: #666;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    /* Header & Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .logo-img {
        max-width: 140px;
    }

    /* Hero Sections */
    .hero {
        padding: 8rem 0 4rem;
        min-height: 60vh;
    }
    
    .hero--compact {
        min-height: 40vh;
        padding: 6rem 0 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-img {
        width: 250px;
        height: 240px;
    }

    .hero-content--centered {
        width: 100%;
        max-width: 100%;
    }

    /* Grids & Cards */
    .grid--cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid--values {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card--compact {
        padding: 1.5rem;
    }

    .team-photo {
        width: 100px;
        height: 100px;
    }

    .linkedin-icon {
        width: 16px;
        height: 16px;
    }

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

    .service-card {
        padding: 1rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon img {
        width: 35px;
        height: 35px;
    }

    /* Content Sections */
    .content-section {
        margin-top: 2rem;
        padding: 2rem 0;
    }

    .content-title {
        font-size: 1.8rem;
    }

    .content-text {
        padding: 0 1rem;
    }

    .content-text p {
        font-size: 1rem;
    }

    .content-highlight {
        padding: 0 1rem;
    }

    /* Footer */
    .footer-content {
        align-items: center;
        text-align: center;
    }

    .footer-logo-img {
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    /* Container padding */
    .nav-container,
    .hero-container,
    .services-container,
    .solutions-container,
    .contact-container,
    .footer-container {
        padding: 0 1rem;
    }

    /* Logo sizes */
    .logo-img {
        max-width: 120px;
    }

    .footer-logo-img {
        max-width: 120px;
    }

    /* Content adjustments */
    .content-title {
        font-size: 1.5rem;
    }

    .content-text {
        padding: 0 0.5rem;
    }

    .content-highlight {
        padding: 0 0.5rem;
    }

    .content-highlight strong {
        font-size: 1.1rem;
    }
} 