* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --color-azul: #487299;
    --color-ambar: #dbae58;
    --color-gris-claro: #f5f5f5;
    --color-gris-oscuro: #333333;
    --color-blanco: #ffffff;
    --color-sombra: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--color-gris-oscuro);
    line-height: 1.6;
    background-color: var(--color-blanco);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--color-azul);
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--color-ambar);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background-color: var(--color-azul);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--color-ambar);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--color-sombra);
}

header {
    background-color: var(--color-blanco);
    box-shadow: 0 2px 10px var(--color-sombra);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: var(--color-azul);
}

.logo span {
    color: var(--color-ambar);
}

/* Menú de navegación */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-gris-oscuro);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--color-ambar);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-ambar);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('2.jpeg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 180px 0 100px;
    margin-top: 70px;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Sección Sobre Nosotros - Mejorada */
.sobre-nosotros {
    background-color: var(--color-gris-claro);
}

.sobre-contenido {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.sobre-texto {
    flex: 1;
}

.sobre-texto .destacado {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--color-azul);
    font-weight: 500;
    margin-bottom: 30px;
    padding: 15px;
    border-left: 4px solid var(--color-ambar);
    background-color: rgba(219, 174, 88, 0.1);
}

.valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.valor-item {
    text-align: center;
    padding: 20px;
    background-color: var(--color-blanco);
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--color-sombra);
    transition: transform 0.3s ease;
}

.valor-item:hover {
    transform: translateY(-5px);
}

.valor-item i {
    font-size: 2.5rem;
    color: var(--color-ambar);
    margin-bottom: 15px;
}

.valor-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.valor-item p {
    font-size: 1rem;
    color: var(--color-gris-oscuro);
}

.sobre-imagen {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-sombra);
}

.sobre-imagen img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.sobre-imagen:hover img {
    transform: scale(1.03);
}

.portafolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.proyecto {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--color-sombra);
    transition: transform 0.3s ease;
    background-color: var(--color-blanco);
}

.proyecto:hover {
    transform: translateY(-10px);
}

.proyecto-img {
    height: 220px;
    overflow: hidden;
}

.proyecto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proyecto:hover .proyecto-img img {
    transform: scale(1.05);
}

.proyecto-info {
    padding: 25px;
}

.proyecto-info h3 {
    color: var(--color-azul);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.proyecto-info p {
    color: var(--color-gris-oscuro);
}

/* Sección Contacto */
.contacto {
    background-color: var(--color-gris-claro);
}

.contacto-contenido {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.info-contacto {
    flex: 1;
    min-width: 300px;
}

.formulario-contacto {
    flex: 1;
    min-width: 300px;
}

.contacto-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contacto-icono {
    background-color: var(--color-azul);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.contacto-datos h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contacto-datos a {
    color: var(--color-azul);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-datos a:hover {
    color: var(--color-ambar);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-azul);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-ambar);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

footer {
    background-color: var(--color-azul);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-logo h2 {
    color: var(--color-ambar) !important;
    margin-bottom: 15px;
}

.copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.4rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .sobre-contenido {
        flex-direction: column;
    }
    
    .sobre-imagen {
        order: -1;
        margin-bottom: 30px;
    }
    
    .valores {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0 10px 5px;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .valores {
        grid-template-columns: 1fr;
    }
    
    .sobre-texto .destacado {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .portafolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .contacto-contenido {
        flex-direction: column;
    }
}

/* ============================================
   NOTIFICACIONES
   ============================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: notification-slide-in 0.3s ease-out;
}

.notification-success {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    border-left: 5px solid #1B5E20;
}

.notification-error {
    background: linear-gradient(135deg, #f44336, #c62828);
    border-left: 5px solid #b71c1c;
}

.notification-info {
    background: linear-gradient(135deg, #2196F3, #1565C0);
    border-left: 5px solid #0d47a1;
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

.notification-fade-out {
    animation: notification-fade-out 0.3s ease-out forwards;
}

/* Animaciones */
@keyframes notification-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notification-fade-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .notification {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
        min-width: auto;
    }
    
    @keyframes notification-slide-in {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes notification-fade-out {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0;
            transform: translateY(-100%);
        }
    }
}