/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header con Logo */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.logo-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.logo-text {
    text-align: left;
}

.logo-title {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.6em;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Sección About */
.about-section {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
}

.about-section h2 {
    color: #1e3c72;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.about-content {
    padding: 20px;
}

.about-content h3 {
    color: #2a5298;
    margin-bottom: 20px;
    font-size: 1.6em;
    position: relative;
    padding-left: 15px;
}

.about-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 25px;
    background: linear-gradient(180deg, #1e3c72, #2a5298);
    border-radius: 2px;
}

.about-content p {
    margin-bottom: 18px;
    text-align: justify;
    color: #555;
    font-size: 1.05em;
}

/* Valores */
.values-section {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 12px;
    margin: 35px 0;
    border: 1px solid #e9ecef;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.value-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #2a5298;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.value-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 25px;
    height: 25px;
    fill: white;
}

.value-card h4 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.value-card p {
    color: #666;
}

/* Servicios */
.services-section {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
}

.services-section h2 {
    color: #1e3c72;
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.services-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid #2a5298;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.service-card h4 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.service-card p {
    color: #666;
    text-align: justify;
    line-height: 1.7;
}

/* Contacto */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
}

.contact-form h3 {
    color: #1e3c72;
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
    position: relative;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 2px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
}

.contact-info h3 {
    color: #1e3c72;
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
    position: relative;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 2px;
}

/* Formulario */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.05em;
}

input, textarea, select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 16px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
}

/* Información de contacto */
.info-section {
    margin-bottom: 30px;
}

.info-section h4 {
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f8f9fa;
    border-radius: 6px;
    padding-left: 10px;
}

.info-icon {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    fill: #2a5298;
}

.info-section p {
    color: #666;
    margin-bottom: 8px;
}

/* Mensaje de éxito */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
    display: none;
}

/* Footer mejorado */
footer {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-logo span {
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 1px;
}

.footer-content p {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .logo-img {
        width: 120px;
        height: 120px;
    }
    
    .logo-title {
        font-size: 3.2em;
    }
    
    .tagline {
        font-size: 1.4em;
    }
    
    .about-grid,
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-section,
    .contact-form,
    .contact-info,
    .services-section {
        padding: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section h2,
    .services-section h2 {
        font-size: 2em;
    }
    
    .contact-form h3,
    .contact-info h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .logo-img {
        width: 100px;
        height: 100px;
    }
    
    .logo-title {
        font-size: 2.5em;
    }
    
    .tagline {
        font-size: 1.2em;
    }
    
    .about-section,
    .contact-form,
    .contact-info,
    .services-section {
        padding: 20px;
    }
    
    .footer-logo {
        flex-direction: column;
        gap: 10px;
    }
}