
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
}

/* Header con mejor distribución */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.4rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-top: 4px solid #E17055;
}

nav {
    max-width: 1100px;
    margin: 0 auto;    
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 2rem;   
    gap: 2rem;
}


.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 120px;
    width: auto;
    display: block;
}


nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    flex-shrink: 0;
}

nav li {
    position: relative;
}

nav a {
    color: #2B4C7E;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #E17055;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: #E17055;
    background: rgba(225, 112, 85, 0.1);
    transform: translateY(-2px);
}

nav a:hover::after {
    width: 80%;
}

nav a.active {
    background: linear-gradient(135deg, #E17055 0%, #d65a3f 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(225, 112, 85, 0.3);
}

nav a.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 112, 85, 0.4);
}

.hero {
    background: 
    linear-gradient(135deg, rgba(43, 76, 126, 0.75), rgba(43, 76, 126, 0.70)),
    url('../img/inicio/casaInicioPagina.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;  
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #E17055;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #E8F4F8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: #E17055;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.4s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #d65a3f;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(225, 112, 85, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: white;
    color: #2B4C7E;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.services-preview {
    padding: 6rem 3rem;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #2B4C7E;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card-large {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #E8F4F8 0%, #d4e5ec 100%);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #E17055;
    text-decoration: none;
    display: block;
}

.service-card-large:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(225, 112, 85, 0.4);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(43, 76, 126, 0.95), transparent);
    padding: 3rem 2rem;
    color: white;
    transition: padding 0.3s;
}

.service-card-large:hover .service-overlay {
    padding: 3.5rem 2rem;
}

.service-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.service-overlay p {
    font-size: 1rem;
    opacity: 0.95;
}

.service-overlay::after {
    content: '→';
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s;
}

.service-card-large:hover .service-overlay::after {
    opacity: 1;
    right: 1.5rem;
}


.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    border-left: 3px solid #E17055;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: #E17055;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.advantage-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
    color: white;
}

.advantage-text p {
    color: #E8F4F8;
    line-height: 1.5;
    font-size: 0.9rem;
}

.stats-banner {
    background: linear-gradient(135deg, #2B4C7E 0%, #3D5A82 100%);
    color: white;
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
}

.stats-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #E17055;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: #E17055;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

.cta-section {
    padding: 6rem 3rem;
    background: linear-gradient(135deg, #E8F4F8 0%, #ffffff 100%);
    text-align: center;
}

.cta-content {
    max-width: 1000px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2B4C7E;
}

.cta-section p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 3rem;
}

.cta-button-container {
    margin-bottom: 3rem;
}

.btn-primary {
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
}

.contact-info-highlight {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    margin-top: 0;
    display: block;
    border: 3px solid #E17055;
    box-shadow: 0 10px 40px rgba(43, 76, 126, 0.1);
}

.contact-info-highlight h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2B4C7E;
}

.contact-phones {
    display: flex;
    justify-content: center;
    margin: 0 auto 2rem;
}

.phone-item {
    background: #E8F4F8;
    padding: 2rem 4rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    min-width: 280px;
}

.phone-item:hover {
    border-color: #E17055;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(225, 112, 85, 0.2);
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #E17055;
    display: block;
    margin-bottom: 0.5rem;
}

.phone-name {
    font-size: 1.1rem;
    color: #2B4C7E;
    font-weight: 600;
}

.contact-info-highlight > p {
    color: #666;
    font-size: 1.25rem;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 2px solid #E8F4F8;
}

/* Footer */
footer {
    background: #2B4C7E;
    color: white;
    padding: 3rem;
    border-top: 4px solid #E17055;
    font-family: 'Arial', sans-serif;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.footer-section h4 {
    color: #E17055;
    margin-bottom: 1rem;
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: #E8F4F8;
    line-height: 1.7;
    font-family: 'Arial', sans-serif;
    font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 1024px) {
    nav ul {
        gap: 1.5rem;
    }
    
    nav a {
        padding: 0.4rem 1rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
    
    nav {
        padding: 0 1.5rem;
        gap: 1rem;
    }
    
    .logo {
        gap: 0.4rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        padding: 0.3rem 0.8rem;
        font-size: 1.25rem;
    }
    
    .advantage-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    nav ul {
        gap: 0.7rem;
    }
    
    nav a {
        padding: 0.25rem 0.6rem;
        font-size: 1.25rem;
    }
    
    nav a::after {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    header {
        position: static;
        padding: 0.35rem 0 0.75rem;
    }

    nav {
        flex-direction: column;
        justify-content: center;
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .logo-img {
        height: 78px;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
        width: 100%;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.65rem;
        border-radius: 18px;
    }

    nav a:hover {
        transform: none;
    }

    .hero {
        min-height: calc(100vh - 150px);
        height: auto;
        padding: 4rem 1rem;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 0;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        letter-spacing: 1.5px;
    }

    .hero-content h1 {
        font-size: 2.25rem;
        line-height: 1.12;
    }

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

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        padding: 0.95rem 1.3rem;
        font-size: 0.92rem;
    }

    .services-preview,
    .stats-banner,
    .cta-section {
        padding: 3.5rem 1.2rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title,
    .cta-section h2 {
        font-size: 2rem;
    }

    .section-subtitle,
    .cta-section p {
        font-size: 1rem;
    }

    .service-card-large {
        height: 290px;
        border-radius: 10px;
    }

    .service-overlay {
        padding: 2.4rem 1.2rem 1.4rem;
    }

    .service-overlay h3 {
        font-size: 1.35rem;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .contact-info-highlight {
        padding: 1.5rem;
        border-radius: 10px;
    }

    .phone-item {
        width: 100%;
        min-width: 0;
        padding: 1.4rem 1rem;
    }

    .phone-number {
        font-size: 1.45rem;
    }

    footer {
        padding: 2.5rem 1.25rem;
    }
}

@media (max-width: 420px) {
    .hero-content h1 {
        font-size: 1.9rem;
    }

    nav a {
        font-size: 0.82rem;
        padding: 0.35rem 0.5rem;
    }

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