:root {
 --primary-color: #3b82f6; /* Un azul académico pero accesible */
 --primary-dark: #2563eb;
 --secondary-color: #64748b; /* Gris azulado neutro */
 --text-dark: #1e293b;
 --text-light: #475569;
 --text-muted: #64748b;
 --bg-light: #f8fafc;
 --bg-white: #ffffff;
 --bg-dark: #1e293b;
 --border-color: #e2e8f0;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
 --transition: all 0.3s ease-in-out;
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
 --font-serif: 'Lora', serif;
}

*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-main);
 font-size: 16px;
 line-height: 1.7;
 color: var(--text-light);
 background: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-serif);
 font-weight: 600;
 line-height: 1.3;
 color: var(--text-dark);
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}

/* Header */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(255,255,255,0.85);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid var(--border-color);
 transition: var(--transition);
}

.header.scrolled {
 background: rgba(255,255,255,0.98);
 box-shadow: var(--shadow-md);
}

.nav {
 height: 70px;
 display: flex;
 align-items: center;
 justify-content: space-between;
}

.nav-logo {
 font-size: 1.75rem;
 font-weight: 600;
 color: var(--text-dark);
 font-family: var(--font-serif);
 text-decoration: none;
}

.nav-links {
 display: flex;
 gap: 32px;
 list-style: none;
}

.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 padding: 8px 0;
 position: relative;
 text-decoration: none;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
 width: 100%;
}

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 8px;
 z-index: 1001;
}

.nav-toggle span {
 display: block;
 width: 24px;
 height: 2px;
 background: var(--text-dark);
 margin: 6px 0;
 transition: var(--transition);
}

/* Hero Section */
.hero {
 background-color: var(--bg-light);
 padding: 160px 0 100px;
 text-align: center;
}

.hero-badge {
 display: inline-block;
 background-color: rgba(59, 130, 246, 0.1);
 color: var(--primary-color);
 padding: 8px 16px;
 border-radius: 999px;
 font-size: 0.9rem;
 font-weight: 500;
 margin-bottom: 24px;
}

.hero-title {
 font-size: clamp(2.5rem, 5vw, 4rem);
 max-width: 800px;
 margin: 0 auto 24px;
}

.hero-subtitle {
 font-size: 1.25rem;
 max-width: 700px;
 margin: 0 auto 32px;
 color: var(--text-light);
}

.hero-actions {
 display: flex;
 justify-content: center;
 gap: 16px;
 flex-wrap: wrap;
}

/* Buttons */
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 12px 28px;
 font-size: 1rem;
 font-weight: 500;
 border-radius: var(--radius-md);
 cursor: pointer;
 transition: var(--transition);
 border: 1px solid transparent;
 text-decoration: none;
}

.btn-primary {
 background: var(--primary-color);
 color: white;
}

.btn-primary:hover {
 background: var(--primary-dark);
 transform: translateY(-2px);
}

.btn-secondary {
 background: var(--bg-white);
 color: var(--text-dark);
 border-color: var(--border-color);
}

.btn-secondary:hover {
 background-color: var(--bg-light);
 border-color: var(--secondary-color);
 transform: translateY(-2px);
}

.btn-white {
 background: white;
 color: var(--primary-color);
}
.btn-white:hover {
 background: var(--bg-light);
}

/* Sections */
.section {
 padding: 80px 0;
}
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }

.section-header {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 50px;
}

.section-label {
 display: inline-block;
 background-color: rgba(59, 130, 246, 0.1);
 color: var(--primary-color);
 padding: 6px 14px;
 border-radius: 999px;
 font-size: 0.85rem;
 font-weight: 500;
 margin-bottom: 16px;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.section-title {
 font-size: clamp(1.8rem, 4vw, 2.5rem);
 margin-bottom: 16px;
}

.section-subtitle {
 font-size: 1.1rem;
 color: var(--text-light);
}

.page-header-section {
 padding: 120px 0 60px;
}
.page-title {
 font-size: clamp(2.2rem, 5vw, 3.5rem);
 text-align: center;
}
.page-subtitle {
 font-size: 1.2rem;
 color: var(--text-light);
 max-width: 600px;
 margin: 16px auto 0;
 text-align: center;
}

.grid-3 {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}

.feature-card {
 text-align: center;
 padding: 24px;
}

.feature-icon {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 64px;
 height: 64px;
 border-radius: 50%;
 background-color: rgba(59, 130, 246, 0.1);
 color: var(--primary-color);
 margin-bottom: 24px;
}
.feature-icon svg {
 width: 32px;
 height: 32px;
}

/* Media Object */
.media-object {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 48px;
 align-items: center;
}
.media-object.reverse {
 grid-template-columns: 1fr 1fr;
}
.media-object.reverse .media-visual {
 order: 2;
}
.media-object.reverse .media-copy {
 order: 1;
}

.media-visual .section-image {
 width: 100%;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
 object-fit: cover;
 aspect-ratio: 4 / 3;
}

.media-copy .section-title {
 font-size: 2.2rem;
}

.media-copy ul {
 list-style-position: inside;
 padding-left: 0;
 margin-top: 20px;
 margin-bottom: 30px;
 display: flex;
 flex-direction: column;
 gap: 12px;
}

.media-copy ul li {
 background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
 padding-left: 30px;
 list-style: none;
}

/* Cards */
.card {
 background: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 transition: var(--transition);
 display: flex;
 flex-direction: column;
 overflow: hidden;
}

.card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-lg);
}

.card-image {
 width: 100%;
 height: 220px;
 object-fit: cover;
}

.card-body {
 padding: 24px;
 display: flex;
 flex-direction: column;
 flex-grow: 1;
}

.card-title {
 font-size: 1.25rem;
 margin-bottom: 12px;
}

.card-text {
 color: var(--text-light);
 flex-grow: 1;
 margin-bottom: 20px;
}

.card-button {
 display: inline-block;
 font-weight: 500;
 color: var(--primary-color);
 text-decoration: none;
 align-self: flex-start;
}
.card-button:hover {
 text-decoration: underline;
}

/* CTA Section */
.cta-section .section-header {
 margin-bottom: 0;
}

/* Value Cards (About page) */
.value-card {
 background-color: var(--bg-white);
 border: 1px solid var(--border-color);
 padding: 32px;
 border-radius: var(--radius-lg);
 text-align: center;
}
.value-card h4 {
 font-size: 1.25rem;
 margin-bottom: 12px;
 font-family: var(--font-main);
 font-weight: 700;
}

/* Team Section */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 30px;
 justify-content: center;
}
.team-member {
 text-align: center;
}
.team-photo {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 16px;
 box-shadow: var(--shadow-md);
}
.team-member h3 {
 font-size: 1.2rem;
 font-family: var(--font-main);
 margin-bottom: 4px;
}
.team-role {
 font-size: 0.9rem;
 color: var(--primary-color);
}

/* Contact Page */
.contact-layout {
 display: grid;
 grid-template-columns: 3fr 2fr;
 gap: 60px;
}
.contact-form-container .section-title, .contact-info-container .section-title {
 font-size: 2rem;
}
.contact-info-item {
 margin-bottom: 24px;
}
.contact-info-item h3 {
 font-family: var(--font-main);
 font-size: 1.1rem;
 margin-bottom: 8px;
}
.contact-info-item p {
 margin: 0;
 line-height: 1.6;
}
.contact-info-item a {
 color: var(--primary-color);
 text-decoration: none;
}
.contact-info-item a:hover {
 text-decoration: underline;
}

.map-container {
 width: 100%;
 height: 250px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
 margin-top: 30px;
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label {
 display: block;
 font-weight: 500;
 margin-bottom: 8px;
 color: var(--text-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
 width: 100%;
 padding: 14px;
 font-size: 1rem;
 font-family: var(--font-main);
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 transition: var(--transition);
 background: var(--bg-white);
}
.form-group input:focus, .form-group textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.form-group textarea {
 resize: vertical;
 min-height: 120px;
}
.checkbox-group {
 display: flex;
 align-items: center;
 gap: 10px;
}
.checkbox-group input[type="checkbox"] {
 width: 16px;
 height: 16px;
}
.checkbox-group label {
 margin: 0;
 font-weight: 400;
}
.checkbox-group a {
 color: var(--primary-color);
 text-decoration: none;
}
.checkbox-group a:hover { text-decoration: underline; }

.submit-button {
 width: 100%;
}
.input-error {
 border-color: #dc2626 !important;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}
.field-error {
 color: #dc2626;
 font-size: 0.85rem;
 margin-top: 4px;
 animation: fadeIn 0.3s ease;
}
.spinner {
 display: inline-block; width: 16px; height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%; border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
button[disabled] { opacity: 0.7; cursor: not-allowed; }

/* Thank You Page */
.thank-you-section {
 padding: 120px 0;
}
.text-center {
 text-align: center;
}
.thank-you-content {
 max-width: 600px;
 margin: 0 auto;
}
.thank-you-icon {
 display: inline-flex;
 justify-content: center;
 align-items: center;
 width: 80px;
 height: 80px;
 border-radius: 50%;
 background-color: #dcfce7;
 color: #22c55e;
 font-size: 2.5rem;
 margin-bottom: 24px;
}
/* Legal Pages */
.legal-content { max-width: 800px; }
.legal-content h2 { margin-top: 40px; margin-bottom: 16px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p, .legal-content ul { margin-bottom: 16px; }
.legal-content ul { padding-left: 20px; }
.legal-content a { color: var(--primary-color); }
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin: 24px 0;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 12px;
 text-align: left;
}
.cookie-table th {
 background-color: var(--bg-light);
}

/* Pagination */
.pagination {
 display: flex;
 justify-content: center;
 gap: 8px;
 margin-top: 48px;
}
.pagination a {
 padding: 8px 16px;
 color: var(--primary-color);
 text-decoration: none;
 font-weight: 500;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
}
.pagination a:hover, .pagination a.active {
 background: var(--primary-color);
 color: white;
 border-color: var(--primary-color);
}

/* Footer */
.footer {
 background: var(--bg-dark);
 color: #e2e8f0;
 padding: 60px 0 30px;
 margin-top: 80px;
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr 1fr 1fr 1.5fr;
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: white;
 text-decoration: none;
 font-family: var(--font-serif);
 margin-bottom: 16px;
 display: block;
}
.footer-description {
 font-size: 0.9rem;
 line-height: 1.6;
 color: #94a3b8;
}
.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: white;
 margin-bottom: 20px;
 font-family: var(--font-main);
 text-transform: uppercase;
 letter-spacing: 1px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
 color: #94a3b8;
 font-size: 0.9rem;
 text-decoration: none;
 transition: color 0.2s ease;
}
.footer-links a:hover { color: white; }
.footer-contact-item {
 display: flex;
 gap: 12px;
 margin-bottom: 16px;
 font-size: 0.9rem;
 color: #94a3b8;
 align-items: flex-start;
}
.footer-contact-item span:first-child {
 color: var(--primary-color);
 font-size: 1.2rem;
 line-height: 1.5;
}
.footer-contact-item a { color: #94a3b8; text-decoration: none; }
.footer-contact-item a:hover { color: white; }

.footer-bottom {
 text-align: center;
 padding-top: 30px;
 border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-copyright { font-size: 0.85rem; color: #64748b; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--bg-dark);
 color: white;
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
 flex-wrap: wrap;
}
#cookie-banner p {
 margin: 0;
}
#cookie-banner a {
 color: var(--primary-color);
}
#cookie-banner div {
 display: flex;
 gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
 .grid-3 { grid-template-columns: repeat(2, 1fr); }
 .media-object, .media-object.reverse { grid-template-columns: 1fr; }
 .media-object .media-visual { order: 1; }
 .media-object .media-copy { order: 2; }
 .contact-layout { grid-template-columns: 1fr; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
 body { font-size: 15px; }
 .nav-toggle { display: block; }
 .nav-links {
 position: fixed; top: 0; right: -100%;
 width: 280px; height: 100%;
 background: var(--bg-white);
 flex-direction: column;
 padding: 100px 30px 30px;
 gap: 24px;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 transition: right 0.4s ease-in-out;
 }
 .nav-links.active { right: 0; }
 .grid-3 { grid-template-columns: 1fr; }
 #cookie-banner {
 flex-direction: column;
 text-align: center;
 }
}
@media (max-width: 576px) {
 .footer-grid { grid-template-columns: 1fr; text-align: center;}
 .footer-contact-item, .footer-description { justify-content: center; }
}