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

:root {
    --primary-color: #03a9f4;
    --primary-dark: #02879f;
    --accent-color: #f79007;
    --accent-light: #f7b359;
    --text-color: #46707f;
    --text-dark: #17252a;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f5;
    --bg-dark: #17252a;
    --bg-soft: #f3f9fb;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --radius-md: 12px;
    --radius-lg: 18px;
    --font-main: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

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

/* HEADER */
.header {
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    margin-left: -20px;
}

.logo-escudo {
    width: 50px;
    height: 50px;
}

.escudo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-main);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 2px;
}

.footer-logo-link {
    margin-bottom: 1rem;
}

.footer-logo-link .logo-main {
    color: var(--text-light);
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-logo-link .logo-image {
    height: 80px;
}

/* NAVIGATION */
.nav-desktop {
    display: none;
}

@media (min-width: 992px) {
    .nav-desktop {
        display: block;
    }
}

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

.nav-link {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

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

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link.nav-cta {
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--text-light);
    box-shadow: 0 8px 18px rgba(247, 144, 7, 0.25);
}

.nav-link.nav-cta::after {
    display: none;
}

.nav-link.nav-cta:hover {
    color: var(--text-light);
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 999;
    overflow-y: auto;
}

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

.mobile-nav-menu {
    list-style: none;
    padding: 2rem 0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 2rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
    padding-left: 2.5rem;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.95) 0%, rgba(247, 144, 7, 0.9) 100%),
                url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(3, 169, 244, 0.85) 0%, rgba(247, 144, 7, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-light);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-light);
}

.hero-title-accent {
    display: block;
    font-size: 3.5rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.hero-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-highlights span::before {
    content: '●';
    color: var(--accent-light);
    font-size: 0.75rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-title-accent {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-highlights {
        flex-direction: column;
        align-items: center;
    }
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(247, 144, 7, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 144, 7, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* SECTIONS */
.section {
    padding: 5rem 0;
}

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

.section-soft {
    background: linear-gradient(180deg, rgba(3, 169, 244, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.section-text {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* NOSOTROS */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .nosotros-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.nosotros-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.image-wrapper:hover .main-image {
    transform: scale(1.05);
}

.image-accent {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--accent-color);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.nosotros-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .nosotros-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* SERVICIOS */
.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .servicios-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.servicio-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.servicio-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.servicio-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.servicio-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-light);
}

.servicio-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-light);
}

.servicio-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.servicio-card:hover .servicio-content {
    max-height: 500px;
    padding: 2rem;
}

.servicio-card.active .servicio-content {
    max-height: 500px;
    padding: 2rem;
}

.servicio-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.servicio-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.servicio-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.servicio-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.servicio-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.servicio-link:hover::after {
    margin-left: 1rem;
}

/* PRESUPUESTOS */
.presupuestos-container {
    max-width: 800px;
    margin: 0 auto;
}

.presupuesto-form {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-alert {
    display: none;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    background: #fff3f3;
    color: #b00020;
    border: 1px solid #f4b4b4;
    font-size: 0.95rem;
}

.form-alert.visible {
    display: block;
}

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

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

fieldset.form-group {
    border: 0;
    padding: 0;
    margin: 0 0 1.5rem;
    min-inline-size: 0;
}

.form-label {
    display: block;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-color);
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-input.error,
.form-textarea.error {
    border-color: #d93025;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 169, 244, 0.1);
}

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

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: var(--transition);
}

.checkbox-label:hover {
    border-color: var(--primary-color);
    background: rgba(3, 169, 244, 0.05);
}

#serviciosGroup.error .checkbox-label {
    border-color: #d93025;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    font-size: 0.95rem;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: var(--primary-color);
    font-weight: 600;
}

.form-link {
    color: var(--primary-color);
    font-weight: 600;
}

.form-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* CONTACTO */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contacto-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contacto-item {
    display: flex;
    gap: 1.5rem;
}

.contacto-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-light);
}

.contacto-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contacto-text p {
    color: var(--text-color);
    line-height: 1.6;
}

.contacto-text a {
    color: var(--text-color);
    font-weight: 600;
}

.contacto-text a:hover {
    color: var(--primary-color);
}

.contacto-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* BLOG */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

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

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.blog-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.blog-link:hover::after {
    margin-left: 1rem;
}

/* FOOTER */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

.footer-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

/* LEGAL PAGES */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
    color: var(--text-color);
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--primary-dark);
}

.legal-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.legal-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-content strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--accent-color);
}

.legal-back {
    margin-top: 3rem;
    text-align: center;
}

/* TRUST STRIP */
.trust-strip {
    background: var(--bg-light);
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(23, 37, 42, 0.08);
}

.trust-strip-grid {
    display: grid;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .trust-strip-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

.trust-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.trust-item p {
    color: var(--text-color);
    margin-bottom: 0;
}

/* PROCESS */
.process-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.process-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(3, 169, 244, 0.12);
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.process-card h3 {
    margin-bottom: 0.75rem;
}

.process-card p {
    margin-bottom: 0;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 1rem 0;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }

    .legal-content h3 {
        font-size: 1.25rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .presupuesto-form {
        padding: 1.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
    }

    .fade-in-up {
        animation: none;
    }
}

/* ACCESSIBILITY */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* FOCUS STYLES */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   CERTIFICACIONES Y RECONOCIMIENTOS SECTION
   ============================================ */

.section-certificaciones {
    padding: 3rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.certificaciones-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title-small {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.certificaciones-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.certificacion-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: var(--transition);
}

.certificacion-item:hover {
    transform: scale(1.05);
}

.certificacion-item img {
    max-height: 60px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: var(--transition);
}

.certificacion-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (min-width: 992px) {
    .certificaciones-grid {
        gap: 3rem;
    }
    
    .certificacion-item img {
        max-height: 70px;
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .certificaciones-grid {
        gap: 1.5rem;
    }
    
    .certificacion-item img {
        max-height: 50px;
        max-width: 120px;
    }
}

/* ============================================
   LARGER LOGO FOR MORE PROMINENCE
   ============================================ */

.logo-image-large {
    height: 70px !important;
    width: auto !important;
    max-width: none;
}

@media (min-width: 992px) {
    .logo-image-large {
        height: 80px !important;
    }
}

@media (max-width: 768px) {
    .logo-image-large {
        height: 55px !important;
    }
}

/* Footer logo larger */
.footer-logo-link .logo-image-large {
    height: 90px !important;
}

/* ============================================
   SERVICIO BADGE FOR M&A
   ============================================ */

.servicio-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   STATS HIGHLIGHT
   ============================================ */

.stat-item-highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 0.5rem;
}

.stat-item-highlight .stat-number,
.stat-item-highlight .stat-label {
    color: white;
}

/* ============================================
   BLOG LAYOUT CON PORTADA (SIDEBAR)
   ============================================ */

.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr 320px;
    }
}

.blog-main {
    min-width: 0;
}

.blog-sidebar {
    position: relative;
}

/* Portada Card - Vertical sticky */
.portada-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: sticky;
    top: 100px;
    border: 2px solid var(--accent-color);
}

.portada-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1rem;
}

.portada-badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.portada-image {
    height: 180px;
    overflow: hidden;
}

.portada-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portada-card:hover .portada-image img {
    transform: scale(1.05);
}

.portada-content {
    padding: 1.5rem;
}

.portada-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.portada-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-dark);
}

.portada-excerpt {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portada-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.portada-link:hover {
    gap: 1rem;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .portada-card {
        position: relative;
        top: 0;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .portada-image {
        height: 200px;
    }
}

/* ============================================
   ARTÍCULO DESTACADO (PORTADA) - HERO
   ============================================ */

.section-portada {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-light) 100%);
    padding: 4rem 0;
}

.portada-hero {
    position: relative;
}

.portada-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(247, 144, 7, 0.3);
}

.portada-badge-large svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.portada-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .portada-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.portada-hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.portada-hero-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

.portada-hero-image:hover img {
    transform: scale(1.03);
}

.portada-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portada-hero-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--primary-color);
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.portada-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.portada-hero-excerpt {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .section-portada {
        padding: 3rem 0;
    }
    
    .portada-hero-title {
        font-size: 1.75rem;
    }
    
    .portada-hero-excerpt {
        font-size: 1rem;
    }
    
    .portada-hero-image img {
        height: 250px;
    }
}

/* ============================================
   ARTÍCULO DESTACADO EN HERO
   ============================================ */

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-grid.has-portada {
    grid-template-columns: 1.2fr 0.8fr;
}

@media (max-width: 992px) {
    .hero-grid.has-portada {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tarjeta de portada en Hero */
.hero-portada {
    display: flex;
    justify-content: flex-end;
}

.hero-portada-mobile {
    display: none;
}

.hero-portada-desktop {
    display: flex;
}

.hero-portada-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    border: 3px solid var(--accent-color);
    backdrop-filter: blur(10px);
}

.hero-portada-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 1rem;
}

.hero-portada-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hero-portada-image {
    height: 160px;
    overflow: hidden;
}

.hero-portada-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-portada-card:hover .hero-portada-image img {
    transform: scale(1.05);
}

.hero-portada-content {
    padding: 1.25rem;
}

.hero-portada-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--primary-color);
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-portada-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-portada-excerpt {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-portada-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.hero-portada-link:hover {
    gap: 0.6rem;
    color: var(--primary-color);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .hero-portada-mobile {
        display: flex;
        width: 100%;
        max-width: 100%;
        margin: 1rem 0 0;
    }

    .hero-portada-desktop {
        display: none;
    }

    .hero-portada {
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }
    
    .hero-portada-image {
        height: 120px;
    }
    
    .hero-portada-title {
        font-size: 1rem;
    }
    
    .hero-portada-excerpt {
        -webkit-line-clamp: 2;
    }
}

/* Ajustes adicionales móvil para Hero */
@media (max-width: 992px) {
    .hero-grid.has-portada {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-portada {
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
        min-width: 0;
    }

    .hero-portada-card {
        width: min(100%, 380px);
        max-width: 380px;
        margin: 0 auto;
    }
    
    .hero-content {
        text-align: center;
        min-width: 0;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-highlights {
        justify-content: center;
    }
}

/* Override móvil real para evitar límite de 380px */
@media (max-width: 768px) {
    .hero-portada {
        width: 100%;
    }

    .hero-portada-card {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   LISTA DE VALORES - Sobre Nosotros
   ============================================ */

.valores-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.valores-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-color);
}

.valores-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

.valores-list strong {
    color: var(--primary-dark);
}
